Skip to content

Commit

Permalink
[PATCH] pnx4008:fix NULL dereference in rgbfb
Browse files Browse the repository at this point in the history
Fix possible NULL dereference in pnxrgbfb.

Signed-off-by: Vitaly Wool <vwool@ru.mvista.com>
Cc: James Simmons <jsimmons@infradead.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Vitaly Wool authored and Linus Torvalds committed Nov 16, 2006
1 parent 84a763e commit 3b9c10d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/pnx4008/pnxrgbfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ static int __devinit rgbfb_probe(struct platform_device *pdev)
goto err1;
}

if (!fb_get_options("pnxrgbfb", &option) && !strcmp(option, "nocursor"))
if (!fb_get_options("pnxrgbfb", &option) && option &&
!strcmp(option, "nocursor"))
rgbfb_ops.fb_cursor = no_cursor;

info->node = -1;
Expand Down

0 comments on commit 3b9c10d

Please sign in to comment.