staging: zram: fix data corruption issue
authorNitin Gupta <ngupta@vflare.org>
Sun, 6 Feb 2011 01:34:20 +0000 (20:34 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Feb 2011 19:39:51 +0000 (11:39 -0800)
commit5414e557fca545614ceedc3d3496f747457e2e3b
tree2b9ce2de75be0328792043f65e7e25aace24417b
parent0742cecbd431fd057b45fd8c0d60f0907e00e17f
staging: zram: fix data corruption issue

In zram_read() and zram_write() we were not incrementing the
index number and thus were reading/writing values from/to
incorrect sectors on zram disk, resulting in data corruption.

Signed-off-by: Nitin Gupta <ngupta@vflare.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zram/zram_drv.c