Re: [PATCH] regulator: core: grab supply info before unlocking

From: Mark Brown
Date: Fri Apr 22 2016 - 11:07:14 EST


On Fri, Apr 22, 2016 at 04:33:51PM +0200, John Ogness wrote:
> It is necessary to check if there is a supply while still holding
> the regulator lock. Otherwise a theoretical race can occur that
> someone else can add a supply and then we incorrectly try to
> unlock that newly added regulator.

I don't understand this. What do you mean by "add a supply"?

Attachment: signature.asc
Description: PGP signature