Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283063
b: refs/heads/master
c: 3b08094
h: refs/heads/master
i:
  283061: 7c549e5
  283059: 635aef3
  283055: 3bb074d
v: v3
  • Loading branch information
Axel Lin authored and Linus Torvalds committed Jan 11, 2012
1 parent fa35b2f commit 47a1ab4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6d511e5155406cd214d3af3ff9cffc69548b006
refs/heads/master: 3b080945aa7670354364c8f9e1a3a07cbb97beb3
2 changes: 1 addition & 1 deletion trunk/drivers/leds/leds-mc13783.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static int __devinit mc13783_led_probe(struct platform_device *pdev)
return -ENODEV;
}

if (pdata->num_leds < 1 || pdata->num_leds > MC13783_LED_MAX) {
if (pdata->num_leds < 1 || pdata->num_leds > (MC13783_LED_MAX + 1)) {
dev_err(&pdev->dev, "Invalid led count %d\n", pdata->num_leds);
return -EINVAL;
}
Expand Down

0 comments on commit 47a1ab4

Please sign in to comment.