commit | df311333a8c13f3ffe2537a4ff507887208cb863 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Thu May 16 17:31:00 2013 +0800 |
committer | Anton Vorontsov <anton@enomsg.org> | Thu Jun 06 17:25:27 2013 -0700 |
tree | 3d52e87564f8537623d465f52c6d632ee949746b | |
parent | 17b4565b308ed31fa20b59842c75e685a101dc8a [diff] |
pm2301_charger: Fix NULL pointer dereference Add checking pl_data in probe, this prevent possible NULL pointer dereference. Also fix NULL pointer deference in dev_err when allocate memory for pm2 fails. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Anton Vorontsov <anton@enomsg.org>