]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ksmbd: fix potential double free on smb2_read_pipe() error path
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 11 Oct 2023 14:30:26 +0000 (23:30 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 13 Oct 2023 03:44:11 +0000 (22:44 -0500)
commit1903e6d0578118e9aab1ee23f4a9de55737d1d05
tree959c878e436317658322f4aaa4b7296b770840c1
parent414849040fcf11d45025b8ae26c9fd91da1465da
ksmbd: fix potential double free on smb2_read_pipe() error path

Fix new smatch warnings:
fs/smb/server/smb2pdu.c:6131 smb2_read_pipe() error: double free of 'rpc_resp'

Fixes: e2b76ab8b5c9 ("ksmbd: add support for read compound")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c