]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: octeon: fix controller deregistration
authorJohan Hovold <johan@kernel.org>
Thu, 9 Apr 2026 12:04:07 +0000 (14:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 May 2026 15:16:28 +0000 (17:16 +0200)
commit271f8aa6f99bf9c3cc8a1c8200332169495bca7f
treee75feeb91c2e6ab3768bfe6ef6c1db5566ca8b78
parentbc7656d29dd46331e07e78303e9cac3f13197d41
spi: octeon: fix controller deregistration

commit 3c49a4d8799bee423a80f392ba95b26af8e9ab91 upstream.

Make sure to deregister the controller before disabling it to avoid
hanging or leaking resources associated with the queue when the queue is
non-empty.

Fixes: 22ad2d8df77d ("spi: octeon: use devm_spi_register_master()")
Cc: stable@vger.kernel.org # 3.13
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260409120419.388546-9-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-cavium-octeon.c