]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/ocfs2/cluster/tcp.c: free sc->sc_page in sc_kref_release()
authorYounger Liu <younger.liu@huawei.com>
Thu, 27 Jun 2013 23:51:05 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:17 +0000 (16:37 +1000)
commite464ae9c940f4361ced77da89dc54c21e4e6be7e
tree9bb0ebcadc980f6c5684ee945833e3d0467d3e1a
parenteafe6c2cbad1fde184e857ea24dbb49030f196db
fs/ocfs2/cluster/tcp.c: free sc->sc_page in sc_kref_release()

There is a memory leak in sc_kref_release().  When free struct
o2net_sock_container (sc), we should release sc->sc_page.

Signed-off-by: Younger Liu <younger.liu@huawei.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/cluster/tcp.c