Skip to content
Unverified Commit 169f9aca authored by Aditya Pakki's avatar Aditya Pakki Committed by Mark Brown
Browse files

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: default avatarAditya Pakki <pakki001@umn.edu>
Link: https://lore.kernel.org/r/20191205231421.9333-1-pakki001@umn.edu
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4a07b8bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment