projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30be048
)
leds: fix unsigned value overflow in atmel pwm driver
author
Li Zefan
<lizf@cn.fujitsu.com>
Sat, 31 May 2008 14:18:55 +0000
(15:18 +0100)
committer
Richard Purdie
<rpurdie@rpsys.net>
Wed, 23 Jul 2008 08:49:56 +0000
(09:49 +0100)
Fix an unsigned value overflow in the error handling code in the
Atmel PWM driver.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
drivers/leds/leds-atmel-pwm.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-atmel-pwm.c
b/drivers/leds/leds-atmel-pwm.c
index 28db6c1444ed9f4b64c989fbbbbc05f49ff82f61..52297c3ab246c38a78e3580895c21e1c00d7b6f6 100644
(file)
--- a/
drivers/leds/leds-atmel-pwm.c
+++ b/
drivers/leds/leds-atmel-pwm.c
@@
-37,7
+37,7
@@
static int __init pwmled_probe(struct platform_device *pdev)
{
const struct gpio_led_platform_data *pdata;
struct pwmled *leds;
-
unsigned
i;
+
int
i;
int status;
pdata = pdev->dev.platform_data;