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)
commit041aba19b916ddfd5254c80ef413ef8a7e76c8ad
treed85fb7795954cb4e59b361d98435983bb265a77a
parent843c666d16e62e4b3889f1491a1d91b87ddc7bd3
staging: zcache: fix memory corruption bug

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>
drivers/staging/zcache/zcache-main.c