aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorMinchan Kim <[email protected]>2017-10-03 16:15:19 -0700
committerLinus Torvalds <[email protected]>2017-10-03 17:54:24 -0700
commitae94264ed4b0cf7cd887947650db4c69acb62072 (patch)
tree5e291f4bf79421a4a5b46122b31841844a67a98d /tools/perf/scripts/python/call-graph-from-sql.py
parenta872eb2131e91ce7c89a8888974a5e22a272b12f (diff)
zram: fix null dereference of handle
In testing I found handle passed to zs_map_object in __zram_bvec_read is NULL so eh kernel goes oops in pin_object(). The reason is there is no routine to check the slot's freeing after getting the slot's lock. This patch fixes it. [[email protected]: v2] Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Fixes: 1f7319c74275 ("zram: partial IO refactoring") Signed-off-by: Minchan Kim <[email protected]> Reviewed-by: 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/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions