]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: fix cmdpendingq locking
authorPaul Fox <pgf@laptop.org>
Mon, 9 May 2011 09:40:42 +0000 (10:40 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 May 2011 19:47:00 +0000 (15:47 -0400)
commit9937ad8f997b9c68e08d71f565940e7f053119d0
tree6764461493979313a596e8afab05a831044c56bb
parentd264753c7c890720ee396920851426f9f6ce6d8b
libertas: fix cmdpendingq locking

We occasionally see list corruption using libertas.

While we haven't been able to diagnose this precisely, we have spotted
a possible cause: cmdpendingq is generally modified with driver_lock
held. However, there are a couple of points where this is not the case.

Fix up those operations to execute under the lock, it seems like
the correct thing to do and will hopefully improve the situation.

Signed-off-by: Paul Fox <pgf@laptop.org>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Dan Williams <dcbw@redhat.com>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c