diff options
author | Jonghwa Lee <[email protected]> | 2013-06-25 14:02:49 +0900 |
---|---|---|
committer | Anton Vorontsov <[email protected]> | 2013-06-28 18:35:49 -0700 |
commit | 3cc9d26966ea02f71258ab0553ebd3388f40533a (patch) | |
tree | 4a4253d83e24966a176bf399a9ac46ec1e351343 /net/unix/sysctl_net_unix.c | |
parent | 605860bc2495cd584fd639f00806591af0b1fefa (diff) |
charger-manager: Fix a bug when it unregisters notifier block of extcon
This patch prevents NULL pointer error cauesed by unregistering
unregistered exton notifier block. At the probing time of charger manager,
it tries to remove extcon notifier block when it fails to initialize them.
It has to be applied for only registered one. Otherwise, it'd make kernel
panic. To make it work right, it checks extcon_specific_cable_nb's
extcon_dev node. If extcon cable notifier block was registered
successfully, it has proper extcon_dev pointer if not so it has NULL
pointer.
Signed-off-by: Jonghwa Lee <[email protected]>
Signed-off-by: Myungjoo Ham <[email protected]>
Acked-by: Chanwoo Choi <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions