ksmbd: add free_transport ops in ksmbd connection
commit a89f5fae upstream. free_transport function for tcp connection can be called from smbdirect. It will cause kernel oops. This patch add free_transport ops in ksmbd connection, and add each free_transports for tcp and smbdirect. Fixes: 21a4e475 ("ksmbd: fix use-after-free in __smb2_lease_break_noti()") Reviewed-by:Stefan Metzmacher <metze@samba.org> Signed-off-by:
Namjae Jeon <linkinjeon@kernel.org> Signed-off-by:
Steve French <stfrench@microsoft.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading