]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 17 Feb 2011 22:46:45 +0000 (14:46 -0800)
commitb7172afe474aec3cd233065b90b5db45c56081dc
treebd225506306351a5577e7c66a0d508ef8325573c
parentc2bbe01f172bf66bb2985d361d2a6e2414e4e24b
staging: zram: fix data corruption issue

commit 5414e557fca545614ceedc3d3496f747457e2e3b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zram/zram_drv.c