Skip to contentSkip to conversation

ath9k: Properly initialize ath_common->cc_lock.

PATCH Superseded greearb at candelatech.com 2 participants 2 messages Oct 15, 2010 Qualcomm Atheros ATH9K wireless driver

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: Properly initialize ath_common->cc_lock.

From: Ben Greear <[email protected]>

Otherwise, lockdep splats, at the least.

---
:100644 100644 a4c5ed4... fdc25f9... M drivers/net/wireless/ath/ath9k/init.c

 drivers/net/wireless/ath/ath9k/init.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/init.c +1 -0
index a4c5ed4..fdc25f9 100644
@@ -577,6 +577,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
 	common->hw = sc->hw;
 	common->priv = sc;
 	common->debug_mask = ath9k_debug;
+	spin_lock_init(&common->cc_lock);
 
 	spin_lock_init(&sc->wiphy_lock);
 	spin_lock_init(&sc->sc_resetlock);
Signature · 1 line
1.7.2.2
#1 lore raw

PATCH 1/1 ath9k: Properly initialize ath_common->cc_lock.

Quoted 3 lines · On Fri, Oct 15, 2010 at 2:56 PM, <[email protected]> wrote:

From: Ben Greear <[email protected]>

Otherwise, lockdep splats, at the least.

Thanks for the fix, please include the lockdep rant here on the commit log.

Luis