mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [merged] ocfs2-free-dummy_sc-in-sc_fop_release-in-case-of-memory-leak.patch removed from -mm tree
@ 2017-07-07 19:07 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-07-07 19:07 UTC (permalink / raw)
  To: jiangqi903, jlbec, junxiao.bi, mfasheh, mm-commits, piaojun


The patch titled
     Subject: ocfs2: free 'dummy_sc' in sc_fop_release() to prevent memory leak
has been removed from the -mm tree.  Its filename was
     ocfs2-free-dummy_sc-in-sc_fop_release-in-case-of-memory-leak.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: piaojun <piaojun@huawei.com>
Subject: ocfs2: free 'dummy_sc' in sc_fop_release() to prevent memory leak

'sd->dbg_sock' is malloced in sc_common_open(), but not freed at the end
of sc_fop_release().

Link: http://lkml.kernel.org/r/594FB0A4.2050105@huawei.com
Signed-off-by: Jun Piao <piaojun@huawei.com>
Reviewed-by: Joseph Qi <jiangqi903@gmail.com>
Cc: Mark Fasheh <mfasheh@versity.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/ocfs2/cluster/netdebug.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN fs/ocfs2/cluster/netdebug.c~ocfs2-free-dummy_sc-in-sc_fop_release-in-case-of-memory-leak fs/ocfs2/cluster/netdebug.c
--- a/fs/ocfs2/cluster/netdebug.c~ocfs2-free-dummy_sc-in-sc_fop_release-in-case-of-memory-leak
+++ a/fs/ocfs2/cluster/netdebug.c
@@ -426,6 +426,7 @@ static int sc_fop_release(struct inode *
 	struct o2net_sock_container *dummy_sc = sd->dbg_sock;
 
 	o2net_debug_del_sc(dummy_sc);
+	kfree(dummy_sc);
 	return seq_release_private(inode, file);
 }
 
_

Patches currently in -mm which might be from piaojun@huawei.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-07 19:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07 19:07 [merged] ocfs2-free-dummy_sc-in-sc_fop_release-in-case-of-memory-leak.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).