]> err.no Git - linux-2.6/commit
rt2x00: Fix unbalanced mutex locking
authorIvo van Doorn <ivdoorn@gmail.com>
Fri, 20 Jun 2008 20:11:00 +0000 (22:11 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Jun 2008 14:56:16 +0000 (10:56 -0400)
commit99ade2597e3f7f0ad463c489aaccd6cc605e242c
treea644c9c689cded6ebdb46953180af82d7d3fcdd4
parent2f9ec47d0954f9d2e5a00209c2689cbc477a8c89
rt2x00: Fix unbalanced mutex locking

The usb_cache_mutex was not correctly released
under all circumstances. Both rt73usb as rt2500usb
didn't release the mutex under certain conditions
when the register access failed. Obviously such
failure would lead to deadlocks.

In addition under similar circumstances when the
bbp register couldn't be read the value must be
set to 0xff to indicate that the value is wrong.
This too didn't happen under all circumstances.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt73usb.c