]> git.baikalelectronics.ru Git - kernel.git/commit
staging: zcache: fix refcount leak
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Tue, 26 Jun 2012 08:49:46 +0000 (16:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 18:31:15 +0000 (11:31 -0700)
commiteb9288cf3ef21e26d125702cf58782dff6b1fb6a
tree5c53aff022c3a57b490a89b0751e10c7ff9977d1
parentd316e39cb9b5c1b03b58dce8d54ab28ed1e868c3
staging: zcache: fix refcount leak

In zcache_get_pool_by_id, the refcount of zcache_host is not increased, but
it is always decreased in zcache_put_pool

Acked-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/zcache-main.c