aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorWeijie Yang <[email protected]>2014-11-13 15:19:05 -0800
committerLinus Torvalds <[email protected]>2014-11-13 16:17:05 -0800
commitc406515239376fc93a30d5d03192182160cbd3fb (patch)
tree41269ecf1d06e46fce5164d02b0b29ca78e8976e /scripts/gcc-plugins/randomize_layout_plugin.c
parent2c54396e40c79876a7ddfd3231c81eedf639795b (diff)
zram: avoid kunmap_atomic() of a NULL pointer
zram could kunmap_atomic() a NULL pointer in a rare situation: a zram page becomes a full-zeroed page after a partial write io. The current code doesn't handle this case and performs kunmap_atomic() on a NULL pointer, which panics the kernel. This patch fixes this issue. Signed-off-by: Weijie Yang <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Cc: Dan Streetman <[email protected]> Cc: Nitin Gupta <[email protected]> Cc: Weijie Yang <[email protected]> Acked-by: Jerome Marchand <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions