fix X[ ARRAY_SIZE(X) ]
Subsystems (3)
PATCH 1/1 fix X[ ARRAY_SIZE(X) ]
Ensure pcc->keymap[ ARRAY_SIZE(pcc->keymap) ] does not occur.
Signed-off-by Roel Kluin <[email protected]>
---
drivers/platform/x86/panasonic-laptop.c +1 -1
@@ -507,7 +507,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));
applied
thanks,
--
Len Brown, Intel Open Source Technology Center
Quoted 22 lines · Roel Kluin
Ensure pcc->keymap[
ARRAY_SIZE(pcc->keymap)] does not occur.Signed-off-by Roel Kluin <[email protected]>---
drivers/platform/x86/panasonic-laptop.c +1
-2@@ -507,7 +507,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