Skip to contentSkip to conversation

p54spi: Add missing spin_lock_init

PATCH Christian Lamparter 1 participant 1 message Nov 16, 2011 1 message not in the archive

lore
Share & tools
lore

Christian Lamparter

author Acked-by
#1 lore raw
In reply to a message not in the archive
Quoted 3 lines · Michael Büsch

The tx_lock is not initialized properly. Add spin_lock_init().

Quoted 15 lines

---

Index: compat-wireless-2011-11-04/drivers/net/wireless/p54/p54spi.c
===================================================================

drivers/net/wireless/p54/p54spi.c +1 -0
@@ -656,6 +656,7 @@ static int __devinit p54spi_probe(struct
 	init_completion(&priv->fw_comp);
 	INIT_LIST_HEAD(&priv->tx_pending);
 	mutex_init(&priv->mutex);
+	spin_lock_init(&priv->tx_lock);
 	SET_IEEE80211_DEV(hw, &spi->dev);
 	priv->common.open = p54spi_op_start;
 	priv->common.stop = p54spi_op_stop;