ksmbd: fix possible null-deref in smb_lazy_parent_lease_break_close
authorMarios Makassikis <mmakassikis@freebox.fr>
Wed, 13 Mar 2024 14:11:38 +0000 (15:11 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 14 Mar 2024 23:51:32 +0000 (18:51 -0500)
commit5fb282ba4fef8985a5acf2b32681f2ec07732561
tree2bbb5f83c75d238835c727f81fd9d50dd1566d83
parentc8efcc786146a951091588e5fa7e3c754850cb3c
ksmbd: fix possible null-deref in smb_lazy_parent_lease_break_close

rcu_dereference can return NULL, so make sure we check against that.

Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/oplock.c