rfkill: fix double-mutex-locking
authorMichael Buesch <mb@bu3sch.de>
Wed, 28 Nov 2007 16:49:34 +0000 (17:49 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Nov 2007 23:08:48 +0000 (18:08 -0500)
commit7f4c534178722ac9ffb4feae3a4d54e3fbe3f22c
tree5067b23f30c5758bb6d6eee5e169afb98c98cd79
parent8312512e81ab16d845b49d1ec695fad1c72f19f6
rfkill: fix double-mutex-locking

rfkill_toggle_radio is called from functions where
rfkill->mutex is already aquired.

Remove the lock from rfkill_toggle_radio() and add it to
the only calling function that calls it without the lock held.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/rfkill/rfkill.c