diff options
author | Minchan Kim <[email protected]> | 2017-04-13 14:56:35 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-04-13 18:24:21 -0700 |
commit | 4ca82dabc9fbf7bc5322aa54d802cb3cb7b125c5 (patch) | |
tree | d1bdc863cfecc1caa2153006fdcc71f1f3637171 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 045c7a3f53d9403b62d396b6d051c4be5044cdb4 (diff) |
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/[email protected]
Signed-off-by: Minchan Kim <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions