]> 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>
Wed, 19 Jun 2013 00:05:40 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:49 +0000 (17:12 +1000)
commiteb50ab837a32240874bfbef7fc4ffa32064df434
tree6f64718b79ecf600f1a03ae381e6dc7eea938af6
parentf256ef401aa91a7d4fa54071f801e9c35cffd57f
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