fs: dlm: fix return value check in dlm_memory_init()
It should check 'cb_cache', after calling kmem_cache_create("dlm_cb").
Fixes: 61bed0baa4
("fs: dlm: use a non-static queue for callbacks")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
88603b6dc4
commit
8113aa9136
|
@ -51,7 +51,7 @@ int __init dlm_memory_init(void)
|
|||
cb_cache = kmem_cache_create("dlm_cb", sizeof(struct dlm_callback),
|
||||
__alignof__(struct dlm_callback), 0,
|
||||
NULL);
|
||||
if (!rsb_cache)
|
||||
if (!cb_cache)
|
||||
goto cb;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue