diff options
author | Aaro Koskinen <aaro.koskinen@nokia.com> | 2020-03-04 13:17:40 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-03-04 14:28:57 +0000 |
commit | f9981d4f50b475d7dbb70f3022b87a3c8bba9fd6 (patch) | |
tree | 6e86fa62b26407a7ef49117c40e96727c9c38036 /ipc/msgutil.c | |
parent | 51bddd4501bc414b8b1e8f4d096b4a5304068169 (diff) |
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: Aaro Koskinen <aaro.koskinen@nokia.com>
Message-Id: <20200304111740.27915-1-aaro.koskinen@nokia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'ipc/msgutil.c')
0 files changed, 0 insertions, 0 deletions