Re: [PATCH] power: supply: bq2415x: check for NULL acpi_id to avoid null pointer dereference
From: Sebastian Reichel
Date: Sun Jan 29 2017 - 10:20:24 EST
Hi,
On Fri, Jan 20, 2017 at 01:25:06PM +0000, Colin King wrote:
> acpi_match_device can potentially return NULL, so it is prudent to
> check if acpi_id is null before it is dereferenced. Add a check
> and an error message to indicate the failure.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Thanks, queued into power-supply's for-next branch.
-- Sebastian
Attachment:
signature.asc
Description: PGP signature