]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: avoid NULL pointer dereference in dbg call
authorAlexandra Diupina <adiupina@astralinux.ru>
Wed, 19 Mar 2025 14:28:58 +0000 (17:28 +0300)
committerSteve French <stfrench@microsoft.com>
Mon, 24 Mar 2025 14:45:07 +0000 (09:45 -0500)
commitb4885bd5935bb26f0a414ad55679a372e53f9b9b
treecd8c718e9cddb71a41f3b91e084ca77984f2e6cc
parentf089ee00f205a6e487291f347ea99bf26370643a
cifs: avoid NULL pointer dereference in dbg call

cifs_server_dbg() implies server to be non-NULL so
move call under condition to avoid NULL pointer dereference.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: e79b0332ae06 ("cifs: ignore cached share root handle closing errors")
Cc: stable@vger.kernel.org
Signed-off-by: Alexandra Diupina <adiupina@astralinux.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2misc.c