The patch titled leds: fix unsigned value overflow in for loop has been added to the -mm tree. Its filename is leds-fix-unsigned-value-overflow-in-for-loop.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: leds: fix unsigned value overflow in for loop From: Li Zefan <lizf@xxxxxxxxxxxxxx> Fix the following unsigned variable overflow: unsigned i; for (i = n; i >= 0; i--) ... It won't break anything to use type 'int'. Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/leds/leds-atmel-pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/leds/leds-atmel-pwm.c~leds-fix-unsigned-value-overflow-in-for-loop drivers/leds/leds-atmel-pwm.c --- a/drivers/leds/leds-atmel-pwm.c~leds-fix-unsigned-value-overflow-in-for-loop +++ a/drivers/leds/leds-atmel-pwm.c @@ -37,7 +37,7 @@ static int __init pwmled_probe(struct pl { const struct gpio_led_platform_data *pdata; struct pwmled *leds; - unsigned i; + int i; int status; pdata = pdev->dev.platform_data; _ Patches currently in -mm which might be from lizf@xxxxxxxxxxxxxx are leds-fix-unsigned-value-overflow-in-for-loop.patch cgroup-use-read-lock-to-guard-find_existing_css_set.patch memcg-avoid-unnecessary-initialization.patch memcg-better-migration-handling.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html