Commit 28153a31 authored by Pali Rohár's avatar Pali Rohár Committed by Sebastian Reichel
Browse files

bq2415x_charger: Fix null pointer dereference

Commit b68c3161 (bq2415x_charger: Allow to load and use driver even if
notify device is not registered yet) introduced null pointer dereference in
case bq is NULL. This patch fixes it.

Fixes: b68c3161

 ("bq2415x_charger: Allow to load and use driver even if notify device is not registered yet")
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarPali Rohár <pali.rohar@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 8807feb9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment