fs/ocfs2/cluster/tcp.c: free sc->sc_page in sc_kref_release()
authorYounger Liu <younger.liu@huawei.com>
Wed, 3 Jul 2013 22:00:54 +0000 (15:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:23 +0000 (16:07 -0700)
commitd3e3b41b3dffff50c66651d60146b155d6ce0484
tree87cefed4f88de18e6825fe582ef015878c855dfa
parent40bd62eb7fb8447798732e809a676ebaf2a7f910
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/tcp.c