projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6d5df1
)
fix memory leak in large read decrypt offload
author
Steve French
<stfrench@microsoft.com>
Sat, 26 Oct 2019 21:00:44 +0000
(16:00 -0500)
committer
Steve French
<stfrench@microsoft.com>
Sun, 27 Oct 2019 19:36:11 +0000
(14:36 -0500)
Spotted by Ronnie.
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c
patch
|
blob
|
history
diff --git
a/fs/cifs/smb2ops.c
b/fs/cifs/smb2ops.c
index
4c09225
..
cd55af9
100644
(file)
--- a/
fs/cifs/smb2ops.c
+++ b/
fs/cifs/smb2ops.c
@@
-4084,6
+4084,7
@@
free_pages:
kfree(dw->ppages);
cifs_small_buf_release(dw->buf);
+ kfree(dw);
}
@@
-4157,7
+4158,7
@@
receive_encrypted_read(struct TCP_Server_Info *server, struct mid_q_entry **mid,
dw->server = server;
dw->ppages = pages;
dw->len = len;
- queue_work(
cifsiod
_wq, &dw->decrypt);
+ queue_work(
decrypt
_wq, &dw->decrypt);
*num_mids = 0; /* worker thread takes care of finding mid */
return -1;
}