Skip to content

Commit

Permalink
[PATCH] s3c2410fb: fix un-initialised dev field
Browse files Browse the repository at this point in the history
The current driver is not setting the dev field in the private data
structure, which can lead to an OOPS if the driver tries to report an
error.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Cc: James Simmons <jsimmons@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ben Dooks authored and Linus Torvalds committed Feb 16, 2007
1 parent 008983d commit 0187f22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/s3c2410fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,8 @@ static int __init s3c2410fb_probe(struct platform_device *pdev)

info = fbinfo->par;
info->fb = fbinfo;
info->dev = &pdev->dev;

platform_set_drvdata(pdev, fbinfo);

dprintk("devinit\n");
Expand Down

0 comments on commit 0187f22

Please sign in to comment.