Re: [PATCH 11/62] drm/pagemap: Unlock cache->lock before freeing it

From: Bart Van Assche

Date: Mon Feb 23 2026 - 17:20:29 EST


On 2/23/26 2:14 PM, Matthew Brost wrote:
On Mon, Feb 23, 2026 at 02:00:11PM -0800, Bart Van Assche wrote:
From: Bart Van Assche <bvanassche@xxxxxxx>

Although freeing a spinlock without unlocking it is fine, this confuses

Fine, but pretty bad practice.

static analyzers. Hence this patch.

Cc: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx>
Cc: Maxime Ripard <mripard@xxxxxxxxxx>
Cc: Thomas Zimmermann <tzimmermann@xxxxxxx>
Cc: Thomas Hellström <thomas.hellstrom@xxxxxxxxxxxxxxx>
Cc: Matthew Brost <matthew.brost@xxxxxxxxx>

With that:
Reviewed-by: Matthew Brost <matthew.brost@xxxxxxxxx>

We can apply this to the DRM branches and propagate this up to Linus
during 7.0 cycle if that works for you? Or if you have other plans to
merge, let us know.
Peter asked me to split this series into one series per maintainer and
to send the patches directly to the respective maintainers. Feel free to
queue this patch in a DRM branch.

Thanks,

Bart.