From: Hans de Goede Date: Sat, 21 Mar 2015 16:26:24 +0000 (+0100) Subject: extcon: Fix missing locking when [un]registering notifiers X-Git-Tag: omap-for-v4.2/o2_dc~63^2~32^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66bee35f29683fc4a9a530a1c56a0ec45e3f7d72;p=pandora-kernel.git 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 [cw00.choi: Apply this patch to extcon.c driver instead of old extcon-class.c] Signed-off-by: Chanwoo Choi --- Reading git-diff-tree failed