]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
libertas: fix cmdpendingq locking
authorPaul Fox <pgf@laptop.org>
Mon, 9 May 2011 09:40:42 +0000 (10:40 +0100)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:48 +0000 (13:54 -0700)
commit57ad6fccb924ec7fdb6aa88aa41ebc76da76fa74
treee71dceec6b91255e52b274f1bb6e8f9c74fd7b7f
parent02b5e373b2f4a28762cb6ff908b9b726bb17c844
libertas: fix cmdpendingq locking

commit 2ae1b8b35faba31a59b153cbad07f9c15de99740 upstream.

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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/net/wireless/libertas/cmd.c