ksmbd: avoid duplicate opinfo_put() call on error of smb21_lease_break_ack()
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 4 Dec 2023 13:20:46 +0000 (22:20 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 8 Dec 2023 16:11:33 +0000 (10:11 -0600)
commit658609d9a618d8881bf549b5893c0ba8fcff4526
treee99f66c7b2f5918e4b2926747d84e42d69f5098b
parentc2a721eead71202a0d8ddd9b56ec8dce652c71d1
ksmbd: avoid duplicate opinfo_put() call on error of smb21_lease_break_ack()

opinfo_put() could be called twice on error of smb21_lease_break_ack().
It will cause UAF issue if opinfo is referenced on other places.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c