This is a note to let you know that I've just added the patch titled fs: dlm: fix return value check in dlm_memory_init() to the 6.2-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: fs-dlm-fix-return-value-check-in-dlm_memory_init.patch and it can be found in the queue-6.2 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit 215d29de6da1368ac59b1ccba322664e28f779c6 Author: Yang Yingliang <yangyingliang@xxxxxxxxxx> Date: Tue Jan 3 19:37:49 2023 +0800 fs: dlm: fix return value check in dlm_memory_init() [ Upstream commit 8113aa91360a013ebe00763bb0823b5a41b11c4d ] 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@xxxxxxxxxx> Signed-off-by: David Teigland <teigland@xxxxxxxxxx> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/fs/dlm/memory.c b/fs/dlm/memory.c index eb7a08641fcf5..cdbaa452fc05a 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;