We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c385be commit 48a1a2aCopy full SHA for 48a1a2a
drivers/interrupt_controller/intc_nxp_pint.c
@@ -69,7 +69,7 @@ int nxp_pint_pin_enable(uint8_t pin, enum nxp_pint_trigger trigger, bool wake)
69
{
70
uint8_t slot = 0U;
71
72
- if (pin > ARRAY_SIZE(pin_pint_id)) {
+ if (pin >= ARRAY_SIZE(pin_pint_id)) {
73
/* Invalid pin ID */
74
return -EINVAL;
75
}
0 commit comments