Files
linux-stable-mirror/drivers/spi
Christian Loehle e9bce603fb spi: rockchip: Fix PM runtime count on no-op cs
commit 0bb394067a upstream.

The early bail out that caused an out-of-bounds write was removed with
commit 5c018e378f ("spi: spi-rockchip: Fix out of bounds array
access")
Unfortunately that caused the PM runtime count to be unbalanced and
underflowed on the first call. To fix that reintroduce a no-op check
by reading the register directly.

Cc: stable@vger.kernel.org
Fixes: 5c018e378f ("spi: spi-rockchip: Fix out of bounds array access")
Signed-off-by: Christian Loehle <christian.loehle@arm.com>
Link: https://patch.msgid.link/1f2b3af4-2b7a-4ac8-ab95-c80120ebf44c@arm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-19 18:13:01 +01:00
..
2024-07-08 17:01:10 +01:00
2024-09-12 12:38:44 +01:00
2024-09-12 12:38:44 +01:00
2024-07-08 17:01:10 +01:00
2024-09-02 12:56:31 +01:00
2024-06-11 11:38:25 +01:00
2024-12-05 14:02:51 +01:00