[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <563cf3d2-08bd-4768-950a-02e89fa6b6c8@sirena.org.uk>
Date: Tue, 18 Jul 2023 18:18:10 +0100
From: Mark Brown <broonie@...nel.org>
To: Charles Keepax <ckeepax@...nsource.cirrus.com>
Cc: gregkh@...uxfoundation.org, rafael@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] regmap: maple: Clear async flag when doing a maple tree
cache sync
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.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists