Re: [PATCH v5] mtd: spi-nor: core: Fix mutex leak in spi_nor_rww_start_exclusive()

From: Michael Walle

Date: Fri Sep 11 2026 - 09:38:18 EST



On Thu, 27 Aug 2026 16:26:56 +0800, Runyu Xiao wrote:
> spi_nor_rww_start_exclusive() is used as a wait_event_killable()
> condition. When an RWW operation is already in progress, it returns
> false while still holding nor->lock. The wait condition is then retried,
> but spi_nor_rww_end_exclusive() needs the same lock to clear the RWW
> state, so the wait can deadlock.
>
> Use the same guard(mutex) pattern as the other RWW helpers so nor->lock
> is released on both the busy and successful return paths.
>
> [...]

Applied, thanks!

[1/1] mtd: spi-nor: core: Fix mutex leak in spi_nor_rww_start_exclusive()
commit: 14dc3dee0efd18a7b85ba59879e7e217c7c6279a

Best regards,
--
Michael Walle <mwalle@xxxxxxxxxx>