From: Satish Kumar <[email protected]> Fix Null pointer check for display pointer in omapfb_blank().
Signed-off-by: Satish Kumar <[email protected]> Signed-off-by: Manjunatha GK <[email protected]> Cc: Tony Lindgren <[email protected]> --- drivers/video/omap2/omapfb/omapfb-main.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 4b4506d..63268cf 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -1217,6 +1217,11 @@ static int omapfb_blank(int blank, struct fb_info *fbi) int do_update = 0; int r = 0; + if (display == NULL) { + printk(KERN_ERR "omapfb_blank: fb2display returned NULL\n"); + return -EINVAL; + } + omapfb_lock(fbdev); switch (blank) { -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
