]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: free 'dummy_sc' in sc_fop_release() to prevent memory leak
authorpiaojun <piaojun@huawei.com>
Thu, 6 Jul 2017 22:36:13 +0000 (15:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Jul 2017 23:24:30 +0000 (16:24 -0700)
commita525e5f0ba858e329a159b3043a7899e29830713
tree387cac1376535b3aa8ec590e8390209a82b67f27
parent514d861e0235da9b77f2cf4615e1ae1c463dd7b0
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/netdebug.c