diff options
author | Conor Dooley <conor.dooley@microchip.com> | 2022-06-14 09:58:10 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-14 11:26:41 +0300 |
commit | d38dc01a4e68133e11ae74af7585d2c4bbd5803d (patch) | |
tree | c3048a57f8ab05a5c9df0769fd034fdd26670002 /drivers/spi/spi.c | |
parent | 35f2b9afc23b75e407caa70635851292056bff33 (diff) | |
download | linux-d38dc01a4e68133e11ae74af7585d2c4bbd5803d.tar.xz |
spi: microchip-core: fix potentially incorrect return from probe
If platform_get_irqi() returns 0, the error case will be triggered but
probe() will return 0 rather than an error. Ape the other drivers using
this pattern and return -ENXIO.
Reported-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/linux-spi/20220609055533.95866-2-yang.lee@linux.alibaba.com/
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Fixes: 9ac8d17694b6 ("spi: add support for microchip fpga spi controllers")
Link: https://lore.kernel.org/r/20220614065809.1969177-1-conor.dooley@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi.c')
0 files changed, 0 insertions, 0 deletions