From: Weijie Yang Date: Thu, 13 Nov 2014 23:19:05 +0000 (-0800) Subject: zram: avoid kunmap_atomic() of a NULL pointer X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~120^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c406515239376fc93a30d5d03192182160cbd3fb;p=pandora-kernel.git 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 Cc: Sergey Senozhatsky Cc: Dan Streetman Cc: Nitin Gupta Cc: Weijie Yang Acked-by: Jerome Marchand Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed