diff options
| author | Minchan Kim <minchan@kernel.org> | 2017-04-13 14:56:35 -0700 |
|---|---|---|
| committer | Peter Kalauskas <peskal@google.com> | 2018-08-23 12:00:18 -0700 |
| commit | a612a2fc1494c64a48834eab4dbc96c9a1e87e60 (patch) | |
| tree | e3318e5a89ea83a777c4c34e2cd2c37c423922c2 /tools/perf/scripts/python | |
| parent | 72692005f580ba4191fe737aa907568560f4bcd3 (diff) | |
UPSTREAM: 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>
(cherry picked from commit 4ca82dabc9fbf7bc5322aa54d802cb3cb7b125c5)
Signed-off-by: Peter Kalauskas <peskal@google.com>
Bug: 112488418
Change-Id: I6abb2aef381463976aea1fa8e7f5ca07367190e9
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
