Messages in this thread | | | Date | Thu, 3 Mar 2016 15:21:30 +0100 | From | Sebastian Reichel <> | Subject | Re: [PATCH] power_supply: 88pm860x_charger: do not pass NULL to power_supply_put |
| |
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 [unhandled content-type:application/pgp-signature] | |