]> Git Repo - linux.git/commitdiff
p54spi: Add missing spin_lock_init
authorMichael Büsch <[email protected]>
Wed, 16 Nov 2011 22:48:31 +0000 (23:48 +0100)
committerJohn W. Linville <[email protected]>
Thu, 17 Nov 2011 19:39:32 +0000 (14:39 -0500)
The tx_lock is not initialized properly. Add spin_lock_init().

Signed-off-by: Michael Buesch <[email protected]>
Cc: <[email protected]>
Acked-by: Christian Lamparter <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/p54/p54spi.c

index f18df82eeb92caccedb8381bb95e4f55cd4d1901..dda97c54d28f9eda6e3451a715576c2c8057bc25 100644 (file)
@@ -656,6 +656,7 @@ static int __devinit p54spi_probe(struct spi_device *spi)
        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;
This page took 0.062288 seconds and 4 git commands to generate.