Unverified Commit f1011ba2 authored by Ma Ke's avatar Ma Ke Committed by Mark Brown
Browse files

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: 44dab88e ("spi: add spi_ppc4xx driver")
Signed-off-by: default avatarMa Ke <make24@iscas.ac.cn>
Link: https://patch.msgid.link/20240722141822.1052370-1-make24@iscas.ac.cn


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1c4d834e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment