diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2015-09-21 17:58:20 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-09-23 19:59:19 +0300 |
commit | 28153a31b8b6c44e4f1e24dafce2f1b22cec427b (patch) | |
tree | b0f9f8abe5132be2bcd9e46b31c530a33c379302 /mm | |
parent | 8807feb91b76dc3267cef58302aaeff3430cb8f2 (diff) | |
download | linux-28153a31b8b6c44e4f1e24dafce2f1b22cec427b.tar.xz |
bq2415x_charger: Fix null pointer dereference
Commit b68c3161430a (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: b68c3161430a ("bq2415x_charger: Allow to load and use driver even if notify device is not registered yet")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions