Commit 1903e6d
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: e2b76ab ("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>1 parent 4148490 commit 1903e6d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6152 | 6152 | | |
6153 | 6153 | | |
6154 | 6154 | | |
6155 | | - | |
6156 | 6155 | | |
6157 | 6156 | | |
6158 | 6157 | | |
6159 | 6158 | | |
6160 | 6159 | | |
| 6160 | + | |
6161 | 6161 | | |
6162 | 6162 | | |
6163 | 6163 | | |
| |||
0 commit comments