staging: zcache: fix memory corruption bug
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Tue, 28 Feb 2012 22:02:23 +0000 (16:02 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Feb 2012 23:23:38 +0000 (15:23 -0800)
This patch fixes a bug where the zv code writes before the allocated
buffer, resulting in system memory corruption. This was introduced
during the switch from xvmalloc to zsmalloc.

Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

No differences found