Re: [PATCH] power_supply: 88pm860x_charger: do not pass NULL to power_supply_put

From: Sebastian Reichel
Date: Thu Mar 03 2016 - 09:21:38 EST


Hi,

On Sun, Feb 28, 2016 at 07:57:58PM +0000, Colin King wrote:
> In the case where power_supply_get_by_name returns NULL the current
> error return path calls power_supply_put with a NULL psy which will
> cause a null pointer dereference. Avoid this with an immediate
> return.

Thanks, queued.

-- Sebastian

Attachment: signature.asc
Description: PGP signature