Re: [PATCH 4/7] regulator: push allocation in set_consumer_device_supply() out of lock

From: Michał Mirosław
Date: Tue Aug 11 2020 - 13:29:00 EST


On Tue, Aug 11, 2020 at 01:23:47PM +0800, kernel test robot wrote:
[...]
> New smatch warnings:
> drivers/regulator/core.c:1491 set_consumer_device_supply() warn: overwrite may leak 'node'

Ah! Good catch!