commit | 66bee35f29683fc4a9a530a1c56a0ec45e3f7d72 | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Sat Mar 21 17:26:24 2015 +0100 |
committer | Chanwoo Choi <cw00.choi@samsung.com> | Mon Mar 23 11:06:04 2015 +0900 |
tree | 79f47f38f1a4802eb8ae789e1b4516b10a424135 | |
parent | b9b518f53996b67833b42ca7751b2085b0dc565a [diff] |
extcon: Fix missing locking when [un]registering notifiers Since extcon.c is using raw_notifiers it must protect the notifier list itself when [un]registering notifiers to avoid the list changing while extcon_update_state is walking the list (through raw_notifier_call_chain). Signed-off-by: Hans de Goede <hdegoede@redhat.com> [cw00.choi: Apply this patch to extcon.c driver instead of old extcon-class.c] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>