staging: zram: fix random data read
authorMinchan Kim <minchan@kernel.org>
Fri, 8 Jun 2012 06:39:26 +0000 (15:39 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jun 2012 15:59:47 +0000 (08:59 -0700)
commit374a69191d12a0525b7ffe1197abc30c4795a230
tree40e0a7ae2e48ded4cd5eeeb8316ccb8348f7a72d
parentc234434835b1f4bad9bdbae6710044cba387c9e5
staging: zram: fix random data read

fd1a30de makes a bug that it uses (struct page *) as zsmalloc's handle
although it's a uncompressed page so that it can access random page,
return random data or even crashed by get_first_page in zs_map_object.

Cc: Seth Jennings <sjenning@linux.vnet.ibm.com>
Cc: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Minchan Kim <minchan@kernel.org>
Acked-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_drv.c