projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88603b6
)
fs: dlm: fix return value check in dlm_memory_init()
author
Yang Yingliang
<yangyingliang@huawei.com>
Tue, 3 Jan 2023 11:37:49 +0000
(19:37 +0800)
committer
David Teigland
<teigland@redhat.com>
Thu, 5 Jan 2023 21:37:51 +0000
(15:37 -0600)
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>
fs/dlm/memory.c
patch
|
blob
|
history
diff --git
a/fs/dlm/memory.c
b/fs/dlm/memory.c
index
eb7a086
..
cdbaa45
100644
(file)
--- 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 (!
rs
b_cache)
+ if (!
c
b_cache)
goto cb;
return 0;