Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1582085 > unrolled thread

[PATCH 3.16 120/306] Cleanup missing frees on some ioctls

Started byBen Hutchings <ben@decadent.org.uk>
First post2017-02-16 01:10 +0100
Last post2017-02-16 01:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.16 120/306] Cleanup missing frees on some ioctls Ben Hutchings <ben@decadent.org.uk> - 2017-02-16 01:10 +0100

#1582085 — [PATCH 3.16 120/306] Cleanup missing frees on some ioctls

FromBen Hutchings <ben@decadent.org.uk>
Date2017-02-16 01:10 +0100
Subject[PATCH 3.16 120/306] Cleanup missing frees on some ioctls
Message-ID<tbhO3-6VI-35@gated-at.bofh.it>
3.16.40-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: Steve French <smfrench@gmail.com>

commit 24df1483c272c99ed88b0cba135d0e1dfdee3930 upstream.

Cleanup some missing mem frees on some cifs ioctls, and
clarify others to make more obvious that no data is returned.

Signed-off-by: Steve French <smfrench@gmail.com>
Acked-by: Sachin Prabhu <sprabhu@redhat.com>
[bwh: Backported to 3.16:
 - Drop changes to smb2_duplicate_extents(), smb3_set_integrity()
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -228,7 +228,7 @@ SMB3_request_interfaces(const unsigned i
 			le64_to_cpu(out_buf->LinkSpeed));
 	} else
 		cifs_dbg(VFS, "error %d on ioctl to get interface list\n", rc);
-
+	kfree(out_buf);
 	return rc;
 }
 #endif /* STATS2 */
@@ -640,6 +640,7 @@ smb2_clone_range(const unsigned int xid,
 
 cchunk_out:
 	kfree(pcchunk);
+	kfree(retbuf);
 	return rc;
 }
 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web