source: trunk/package/mac80211/patches/852-p54spi-cancel-workqueue-fix.patch @ 29202

Last change on this file since 29202 was 29202, checked in by mb, 5 years ago

p54spi: workqueue deadlock fix

File size: 846 bytes
  • drivers/net/wireless/p54/p54spi.c

    old new static void p54spi_op_stop(struct ieee80 
    584584        mutex_lock(&priv->mutex); 
    585585        WARN_ON(priv->fw_state != FW_STATE_READY); 
    586586 
    587         cancel_work_sync(&priv->work); 
    588  
    589587        p54spi_power_off(priv); 
    590588        spin_lock_irqsave(&priv->tx_lock, flags); 
    591589        INIT_LIST_HEAD(&priv->tx_pending); 
    static void p54spi_op_stop(struct ieee80 
    593591 
    594592        priv->fw_state = FW_STATE_OFF; 
    595593        mutex_unlock(&priv->mutex); 
     594 
     595        cancel_work_sync(&priv->work); 
    596596} 
    597597 
    598598static int __devinit p54spi_probe(struct spi_device *spi) 
Note: See TracBrowser for help on using the repository browser.