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

commit dbb6b01267c0c866eaac4019cec19f414beec61d upstream.

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

Fixes: 7347a6c7af8d ("spi: octeon: Add ThunderX driver")
Cc: stable@vger.kernel.org # 4.9
Cc: Jan Glauber <jan.glauber@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260409120419.388546-10-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-cavium-thunderx.c