Commit 59d8d24
ksmbd: fix passing freed memory 'aux_payload_buf'
The patch e2b76ab: "ksmbd: add support for read compound" leads
to the following Smatch static checker warning:
fs/smb/server/smb2pdu.c:6329 smb2_read()
warn: passing freed memory 'aux_payload_buf'
It doesn't matter that we're passing a freed variable because nbytes is
zero. This patch set "aux_payload_buf = NULL" to make smatch silence.
Fixes: e2b76ab ("ksmbd: add support for read compound")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent e4e1409 commit 59d8d24
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6312 | 6312 | | |
6313 | 6313 | | |
6314 | 6314 | | |
6315 | | - | |
| 6315 | + | |
6316 | 6316 | | |
6317 | 6317 | | |
6318 | 6318 | | |
| |||
0 commit comments