diff options
| author | Aaro Koskinen <aaro.koskinen@nokia.com> | 2020-03-04 13:17:40 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-25 08:25:48 +0100 |
| commit | 0bc9de1b1c1b5401fe46febe6e4868b91f2f1acc (patch) | |
| tree | f52883a9177bff44cdc8cfe08d9cc0ae5068c72a /scripts/atomic | |
| parent | af7dd05d7c8f160b6696abdd1520057fd01bfc81 (diff) | |
spi: spi_register_controller(): free bus id on error paths
[ Upstream commit f9981d4f50b475d7dbb70f3022b87a3c8bba9fd6 ]
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: Aaro Koskinen <aaro.koskinen@nokia.com>
Message-Id: <20200304111740.27915-1-aaro.koskinen@nokia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/atomic')
0 files changed, 0 insertions, 0 deletions
