diff options
| author | Zijun Hu <[email protected]> | 2024-12-09 13:24:59 +0000 |
|---|---|---|
| committer | Rob Herring (Arm) <[email protected]> | 2024-12-10 16:52:45 +0000 |
| commit | fec3edc47d5cfc2dd296a5141df887bf567944db (patch) | |
| tree | afd678c11173ed64811e5bc63283eeb06202057e /drivers/firmware/psci/psci.c | |
| parent | of: Fix refcount leakage for OF node returned by __of_get_dma_parent() (diff) | |
| download | kernel-fec3edc47d5cfc2dd296a5141df887bf567944db.tar.gz kernel-fec3edc47d5cfc2dd296a5141df887bf567944db.zip | |
of/irq: Fix interrupt-map cell length check in of_irq_parse_imap_parent()
On a malformed interrupt-map property which is shorter than expected by
1 cell, we may read bogus data past the end of the property instead of
returning an error in of_irq_parse_imap_parent().
Decrement the remaining length when skipping over the interrupt parent
phandle cell.
Fixes: 935df1bd40d4 ("of/irq: Factor out parsing of interrupt-map parent phandle+args from of_irq_parse_raw()")
Cc: [email protected]
Signed-off-by: Zijun Hu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[rh: reword commit msg]
Signed-off-by: Rob Herring (Arm) <[email protected]>
Diffstat (limited to 'drivers/firmware/psci/psci.c')
0 files changed, 0 insertions, 0 deletions
