Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e49575f4 authored by Li Zefan's avatar Li Zefan Committed by Richard Purdie
Browse files

leds: fix unsigned value overflow in atmel pwm driver



Fix an unsigned value overflow in the error handling code in the
Atmel PWM driver.

Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarRichard Purdie <rpurdie@rpsys.net>
parent 30be0486
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;