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:
81f39f9
)
cifs: Fix memory leak in smb2_set_ea()
author
Paulo Alcantara
<paulo@paulo.ac>
Wed, 4 Jul 2018 17:16:16 +0000
(14:16 -0300)
committer
Steve French
<stfrench@microsoft.com>
Thu, 5 Jul 2018 18:48:24 +0000
(13:48 -0500)
This patch fixes a memory leak when doing a setxattr(2) in SMB2+.
Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
fs/cifs/smb2ops.c
patch
|
blob
|
history
diff --git
a/fs/cifs/smb2ops.c
b/fs/cifs/smb2ops.c
index 04578f6e306bed46957133abb0966b71e4375c90..1d5985bd760bfa17675dff4b59aead895c9d86e0 100644
(file)
--- a/
fs/cifs/smb2ops.c
+++ b/
fs/cifs/smb2ops.c
@@
-856,6
+856,8
@@
smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
rc = SMB2_set_ea(xid, tcon, fid.persistent_fid, fid.volatile_fid, ea,
len);
+ kfree(ea);
+
SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
return rc;