On (04/13/17 09:17), Minchan Kim wrote: > Date: Thu, 13 Apr 2017 09:17:00 +0900 > From: Minchan Kim <[email protected]> > To: Andrew Morton <[email protected]> > CC: [email protected], Sergey Senozhatsky > <[email protected]>, [email protected], Minchan Kim > <[email protected]>, [email protected] > Subject: [PATCH 1/3] zram: fix operator precedence to get offset > X-Mailer: git-send-email 2.7.4 > > 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") > Cc: [email protected] > Signed-off-by: Minchan Kim <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected] -ss

