1
0
Files
linux/drivers/block
Minchan Kim 4ca82dabc9 zram: fix operator precedence to get offset
In zram_rw_page, the logic to get offset is wrong by operator precedence
(i.e., "<<" is higher than "&").  With wrong offset, zram can corrupt
the user's data.  This patch fixes it.

Fixes: 8c7f01025 ("zram: implement rw_page operation of zram")
Link: http://lkml.kernel.org/r/1492042622-12074-1-git-send-email-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-04-13 18:24:21 -07:00
..
2016-06-27 12:26:08 -07:00
2017-02-22 11:54:49 -07:00
2017-02-23 17:10:32 -05:00
2015-09-23 11:01:16 -06:00
2016-03-15 15:59:47 -07:00
2016-06-27 12:26:08 -07:00
2017-02-20 12:16:15 +01:00
2017-03-07 14:30:38 +01:00