]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
spi: meson-spicc: Fix error handling in meson_spicc_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 28 Apr 2018 22:46:23 +0000 (01:46 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 1 May 2018 20:59:21 +0000 (05:59 +0900)
commitded5fa4e8bac25612caab8f0822691308a28a552
tree67e1bc7cfd385d661e86353d405e6ee8a70e5627
parent0a090d6537d3ac14391e7aeaf025b725e72a9675
spi: meson-spicc: Fix error handling in meson_spicc_probe()

If devm_spi_register_master() fails in meson_spicc_probe(),
spicc->core is left undisabled. The patch fixes that.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-meson-spicc.c