staging/zcache: Fix memory leak while dropping an o2net_sock_container object
authorJie Liu <jeff.liu@oracle.com>
Sun, 4 Aug 2013 12:06:20 +0000 (20:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Aug 2013 06:41:46 +0000 (14:41 +0800)
commit98f62b7a082e1e9eb762c7329a704316f6e07698
tree66abcdad49704e3a6e5e8a380a2b93efd987469c
parent6a48a9d5d7b6cedf9998d45105463a03cb15af13
staging/zcache: Fix memory leak while dropping an o2net_sock_container object

Free sc->sc_page when releasing a struct o2net_sock_container
object to avoid memory leaks.

This issue has been fixed by Younger Liu for OCFS2, so I sync
that patch to zcache as we share the same network code base.

Cc: Younger Liu <younger.liu@huawei.com>
Cc: Bob Liu <bob.liu@oracle.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/ramster/tcp.c
This page took 0.024565 seconds and 5 git commands to generate.