summaryrefslogtreecommitdiff
path: root/fs/dlm
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2023-01-03 14:37:49 +0300
committerDavid Teigland <teigland@redhat.com>2023-01-06 00:37:51 +0300
commit8113aa91360a013ebe00763bb0823b5a41b11c4d (patch)
tree00e5a0d2e84fd6073e5c89ebe8780bb62bfaf7a0 /fs/dlm
parent88603b6dc419445847923fcb7fe5080067a30f98 (diff)
downloadlinux-8113aa91360a013ebe00763bb0823b5a41b11c4d.tar.xz
fs: dlm: fix return value check in dlm_memory_init()
It should check 'cb_cache', after calling kmem_cache_create("dlm_cb"). Fixes: 61bed0baa4db ("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>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/memory.c b/fs/dlm/memory.c
index eb7a08641fcf..cdbaa452fc05 100644
--- a/fs/dlm/memory.c
+++ b/fs/dlm/memory.c
@@ -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;