Commit 108a020
ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails
ksmbd_iov_pin_rsp_read() doesn't free the provided aux buffer if it
fails. Seems to be the caller's responsibility to clear the buffer in
error case.
Found by Linux Verification Center (linuxtesting.org).
Fixes: e2b76ab ("ksmbd: add support for read compound")
Cc: stable@vger.kernel.org
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent a12bc36 commit 108a020
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6173 | 6173 | | |
6174 | 6174 | | |
6175 | 6175 | | |
6176 | | - | |
| 6176 | + | |
| 6177 | + | |
6177 | 6178 | | |
| 6179 | + | |
6178 | 6180 | | |
6179 | 6181 | | |
6180 | 6182 | | |
| |||
6384 | 6386 | | |
6385 | 6387 | | |
6386 | 6388 | | |
6387 | | - | |
| 6389 | + | |
| 6390 | + | |
6388 | 6391 | | |
| 6392 | + | |
6389 | 6393 | | |
6390 | 6394 | | |
6391 | 6395 | | |
| |||
0 commit comments