staging: zsmalloc: fix memory leak
authorNitin Gupta <ngupta@vflare.org>
Mon, 2 Apr 2012 14:13:56 +0000 (09:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 16:18:59 +0000 (09:18 -0700)
commitf4477e90b3ea4c40466e8f418cf41a17aef09192
tree7cba846e1a7a317bc3949b4063677942c614c150
parent3fd654c22c7b002e8681accaed50a6d46656d815
staging: zsmalloc: fix memory leak

This patch fixes a memory leak in zsmalloc where the first
subpage of each zspage is leaked when the zspage is freed.

Signed-off-by: Nitin Gupta <ngupta@vflare.org>
Acked-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zsmalloc/zsmalloc-main.c