Skip to content
Verified Commit f9981d4f authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Mark Brown
Browse files

spi: spi_register_controller(): free bus id on error paths



Some error paths leave the bus id allocated. As a result the IDR
allocation will fail after a deferred probe. Fix by freeing the bus id
always on error.

Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
Message-Id: <20200304111740.27915-1-aaro.koskinen@nokia.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 51bddd45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment