diff options
author | Ma Ke <[email protected]> | 2024-07-24 16:40:47 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-07-29 01:23:23 +0100 |
commit | 0f245463b01ea254ae90e1d0389e90b0e7d8dc75 (patch) | |
tree | 3834bf0daf4ae14b8681297ce13380f639c941b5 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 158678bea637020dd6fc521536c5b07701447777 (diff) |
spi: ppc4xx: handle irq_of_parse_and_map() errors
Zero and negative number is not a valid IRQ for in-kernel code and the
irq_of_parse_and_map() function returns zero on error. So this check for
valid IRQs should only accept values > 0.
Fixes: 44dab88e7cc9 ("spi: add spi_ppc4xx driver")
Signed-off-by: Ma Ke <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions