Re: [PATCH] regmap: maple: Clear async flag when doing a maple tree cache sync

From: Mark Brown
Date: Tue Jul 18 2023 - 13:19:18 EST


On Tue, Jul 18, 2023 at 06:13:46PM +0100, Charles Keepax wrote:
> The normal regcache_sync function sets the async flag on the register
> map. The maple tree sync code uses a temporary buffer, which is freed
> after the register is written, however, as the async flag is set the
> buffer might not be used until after it is freed. Fix this by clearing
> the async flag in the maple tree sync function.

It would be better to push this down into the rbtree code which is what
really wants this.

Attachment: signature.asc
Description: PGP signature