From: Dan Carpenter Date: Wed, 11 Mar 2015 09:36:07 +0000 (+0300) Subject: thinkpad_acpi: off by one in adaptive_keyboard_hotkey_notify_hotkey() X-Git-Tag: omap-for-v4.1/fixes-rc1~23^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=741d98c733b6605fc621c5c8740c7120ae1c0006;p=pandora-kernel.git thinkpad_acpi: off by one in adaptive_keyboard_hotkey_notify_hotkey() This should be >= instead of > because otherwise we read one element past the end of the hotkey_keycode_map[] array. The hotkey_keycode_map[] array has TPACPI_HOTKEY_MAP_LEN elements. Fixes: 6a68d8557084 ('thinkpad_acpi: Add support for more adaptive kbd buttons') Signed-off-by: Dan Carpenter Acked-By: Bastien Nocera Acked-by: Henrique de Moraes Holschuh Signed-off-by: Darren Hart --- Reading git-diff-tree failed