diff options
author | Aditya Pakki <[email protected]> | 2019-12-05 17:14:21 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2019-12-11 16:49:47 +0000 |
commit | 169f9acae08685d4f2a6fd32983958d44e10905d (patch) | |
tree | 7b72d21e87f288729ab851ef42b7361003769d7a /lib/mpi/mpi-internal.h | |
parent | 4a07b8bcd503c842bcf0171cdbccdfdac3d985c3 (diff) |
spi: dw: Avoid BUG_ON() in case of host failure
If dws is NULL in dw_spi_host_add(), we return the error to the
upper callers instead of crashing. The patch replaces BUG_ON by
returning -EINVAL to the caller.
Signed-off-by: Aditya Pakki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions