Search Linux Wireless

RE: [PATCH] ath9k: Fix locking issue during tx completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c
> index 0b6e3b6..9c085d1 100644
> --- a/drivers/net/wireless/ath/ath9k/beacon.c
> +++ b/drivers/net/wireless/ath/ath9k/beacon.c
> @@ -385,7 +385,9 @@ void ath_beacon_tasklet(unsigned long data)
>                         ath_dbg(common, ATH_DBG_BSTUCK,
>                                 "beacon is officially stuck\n");
>                         sc->sc_flags |= SC_OP_TSF_RESET;
> +                       spin_lock_bh(&sc->sc_pcu_lock);
>                         ath_reset(sc, true);
> +                       spin_unlock_bh(&sc->sc_pcu_lock);
>                 }
> 
> @@ -674,7 +679,9 @@ void ath9k_tasklet(unsigned long data)
> 
>         if ((status & ATH9K_INT_FATAL) ||
>             (status & ATH9K_INT_BB_WATCHDOG)) {
> +               spin_lock_bh(&sc->sc_pcu_lock);
>                 ath_reset(sc, true);
> +               spin_unlock_bh(&sc->sc_pcu_lock);
>                 return;
>         }

spin_lock_bh is not required in bh contexts. will send v2 patch.

--
Rajkumar--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux