Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83587
b: refs/heads/master
c: e897363
h: refs/heads/master
i:
  83585: e725a37
  83583: 255167b
v: v3
  • Loading branch information
Ben Dooks authored and Linus Torvalds committed Feb 6, 2008
1 parent 8186e15 commit 0bc59a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0d40335353e1c89c9c885e5af4d0be0f1a50483
refs/heads/master: e8973637bd49de225130f9c04ceb388d48969d98
6 changes: 6 additions & 0 deletions trunk/drivers/video/s3c2410fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,12 @@ static int __init s3c24xxfb_probe(struct platform_device *pdev,
return -EINVAL;
}

if (mach_info->default_display >= mach_info->num_displays) {
dev_err(&pdev->dev, "default is %d but only %d displays\n",
mach_info->default_display, mach_info->num_displays);
return -EINVAL;
}

display = mach_info->displays + mach_info->default_display;

irq = platform_get_irq(pdev, 0);
Expand Down

0 comments on commit 0bc59a3

Please sign in to comment.