panasonic-laptop: beyond ARRAY_SIZE of pcc->keymap
Subsystems (3)
PATCH 1/1 panasonic-laptop: beyond ARRAY_SIZE of pcc->keymap
Do not go beyond ARRAY_SIZE of pcc->keymap
---
This is against linux-next
drivers/misc/panasonic-laptop.c +1 -1
@@ -515,7 +515,7 @@ static void acpi_pcc_generate_keyinput(struct pcc_acpi *pcc) hkey_num = result &0xf ; -if (hkey_num <0 || hkey_num >ARRAY_SIZE (pcc->keymap)) { +if (hkey_num <0 || hkey_num >=ARRAY_SIZE (pcc->keymap)) {ACPI_DEBUG_PRINT ((ACPI_DB_ERROR ,"hotkey number out of range: %d\n" , hkey_num));
Quoted 3 lines · Roel Kluin
Do not go beyond
ARRAY_SIZEofpcc->keymapSigned-off-by Roel Kluin <[email protected]>
Presumably you meant to send this to linux-acpi or linux-kernel instead of linux-sh ;-)
PATCH 1/1 panasonic-laptop: beyond ARRAY_SIZE of pcc->keymap
Do not go beyond ARRAY_SIZE of pcc->keymap
---
Quoted 2 lines
Presumably you meant to send this to linux-acpi or linux-kernel instead of linux-sh ;-)
I was not sure, but linux-acpi is cc'ed now.
drivers/misc/panasonic-laptop.c +1 -1
@@ -515,7 +515,7 @@ static void acpi_pcc_generate_keyinput(struct pcc_acpi *pcc) hkey_num = result &0xf ; -if (hkey_num <0 || hkey_num >ARRAY_SIZE (pcc->keymap)) { +if (hkey_num <0 || hkey_num >=ARRAY_SIZE (pcc->keymap)) {ACPI_DEBUG_PRINT ((ACPI_DB_ERROR ,"hotkey number out of range: %d\n" , hkey_num));
Len Brown
reviewerThis patch already shipped in 2.6.29.
2b190e76def5233c542f6025b4a133b1d4bd1a37
"panasonic-laptop: fix X[ ARRAY_SIZE(X) ]"
thanks,
Len Brown, Intel Open Source Technology Center
Quoted 27 lines · Roel Kluin
Do not go beyond
ARRAY_SIZEofpcc->keymapSigned-off-by Roel Kluin <[email protected]>---
Quoted 2 lines
Presumably you meant to send this to linux-acpi or linux-kernel instead of linux-sh ;-)
I was not sure, but linux-acpi is cc'ed now.
drivers/misc/panasonic-laptop.c +1
-2@@ -515,7 +515,7 @@ static void acpi_pcc_generate_keyinput(struct pcc_acpi *pcc) hkey_num = result &0xf ; -if (hkey_num <0 || hkey_num >ARRAY_SIZE (pcc->keymap)) { +if (hkey_num <0 || hkey_num >=ARRAY_SIZE (pcc->keymap)) {ACPI_DEBUG_PRINT ((ACPI_DB_ERROR ,"hotkey number out of range: %d\n" , hkey_num)); --To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html