Commit b2a1833e authored by Alexandra Diupina's avatar Alexandra Diupina Committed by Greg Kroah-Hartman
Browse files

cifs: avoid NULL pointer dereference in dbg call



commit b4885bd5 upstream.

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: e79b0332 ("cifs: ignore cached share root handle closing errors")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarAlexandra Diupina <adiupina@astralinux.ru>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad756ecd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment