Re: [PATCH v2] regmap: Fix race condition in hwspinlock irqsave routine

From: Mark Brown

Date: Wed Jan 07 2026 - 06:28:39 EST


On Wed, Jan 07, 2026 at 11:26:10AM +0800, Yu-Chun Lin wrote:

> v2:
> - Initialize 'flags' to 0. This fixes a -Werror build failure when
> CONFIG_HWSPINLOCK is disabled, as the stub function in that case does
> not initialize the pointer.

> {
> struct regmap *map = __map;
> + unsigned long flags;
>
> hwspin_lock_timeout_irqsave(map->hwlock, UINT_MAX,
> - &map->spinlock_flags);
> + &flags);
> + map->spinlock_flags = flags;

I'm not seeing that initialisation in the actual patch?

Attachment: signature.asc
Description: PGP signature