From: Wolfram Stering Date: Fri, 23 Sep 2011 12:09:35 +0000 (+0200) Subject: mx3fb: fix NULL pointer dereference in screen blanking. X-Git-Tag: v3.2-rc1~120^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b53b7fb57e1ce3441b1a32f8374874b53c4bc31;p=pandora-kernel.git mx3fb: fix NULL pointer dereference in screen blanking. When blanking an already blanked framebuffer, a kernel NULL pointer dereference occurred, because mx3fb driver handles all kinds of screen blanking (normal, vsync suspend, powerdown) in the same way. Certain programs (Xorg X11 server) first do a normal blank, followed by a powerdown blank, which triggered the bug. Add an additional safeguard and make sdc_disable_channel() safe against multiple calls independent of other logic. Signed-off-by: Michael Thalmeier Signed-off-by: Florian Tobias Schandinat --- Reading git-diff-tree failed