commit | d04ec3f6e023247754c65f85e8be86adf64d7b70 | [log] [tgz] |
---|---|---|
author | Anirudh Ghayal <aghayal@codeaurora.org> | Thu Mar 21 15:50:34 2013 +0530 |
committer | Anirudh Ghayal <aghayal@codeaurora.org> | Fri Mar 22 08:36:14 2013 +0530 |
tree | 2c2118125e3ad4079c47485fa70bfac1420cb382 | |
parent | 490dd94f730ff5a31683af0d29d5ddda5bf707fe [diff] |
power: pm8921-charger: NULL check in 'external_power_changed' callback The power-supply framework internally calls power_supply_changed after registering a power-supply type. This ends up calling 'external_power_changed' callback which unconditionally accesses 'the_chip' pointer (which gets initialized later). Fix this by adding a NULL check. CRs-Fixed: 466083 Change-Id: I75a58ca5ab37e44454f139a2644ab316afe3c4b8 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>