Files
linux/drivers/power
Colin Ian King f9437fa5d2 power: supply: bq2415x: check for NULL acpi_id to avoid null pointer dereference
commit a1b94355ea upstream.

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@canonical.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Cc: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-29 11:31:56 +02:00
..
2016-09-13 02:43:05 +02:00