]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
p54spi: Add missing spin_lock_init
authorMichael Büsch <m@bues.ch>
Wed, 16 Nov 2011 22:48:31 +0000 (23:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:52:28 +0000 (08:52 -0800)
commit 32d3a3922d617a5a685a5e2d24b20d0e88f192a9 upstream.

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

Signed-off-by: Michael Buesch <m@bues.ch>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/p54/p54spi.c

index 6d9204fef90b2aa902b7fb1f68f86eff4d88cc42..72ec212e4827fbf70eefd397bea7d3408026cb53 100644 (file)
@@ -657,6 +657,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;