From: Dan Carpenter Date: Sat, 5 Jun 2010 07:34:08 +0000 (-0700) Subject: Input: pcf8574_keypad - fix off by one in pcf8574_kp_irq_handler() X-Git-Tag: v2.6.35-rc4~57^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b75f775288b90a83a8708a5af663a03d4bbc9ce;p=pandora-kernel.git Input: pcf8574_keypad - fix off by one in pcf8574_kp_irq_handler() If nextstate == ARRAY_SIZE(lp->btncode), then we read one past the end of the array on the next line. This fixes a smatch warning: drivers/input/misc/pcf8574_keypad.c +74 pcf8574_kp_irq_handler(8) error: buffer overflow 'lp->btncode' 17 <= 17 Signed-off-by: Dan Carpenter Acked-by: Jean Delvare Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed