rfkill: fix double-mutex-locking
commit9f6e620b8d7f693eb7ef0247c6c5f6c3c01371be
authorMichael Buesch <mb@bu3sch.de>
Sat, 31 May 2008 17:41:09 +0000 (31 14:41 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 31 May 2008 17:41:09 +0000 (31 14:41 -0300)
treeca714cdc5badd5f63fd7cfe1d5d12e90096a87a6
parent035592207307e3dd6043a84231446ae6b760df83
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