From: Axel Lin Date: Tue, 10 Jan 2012 23:09:43 +0000 (-0800) Subject: drivers/leds/leds-mc13783.c: fix off-by-one for checking num_leds X-Git-Tag: v3.3-rc1~113^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b080945aa7670354364c8f9e1a3a07cbb97beb3;p=pandora-kernel.git drivers/leds/leds-mc13783.c: fix off-by-one for checking num_leds The LED id begins from 0. Thus the maximum number of leds should be MC13783_LED_MAX + 1. Signed-off-by: Axel Lin Acked-by: Philippe Retornaz Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed