[PATCH] pcmcia/vrc4171: Add missing spinlock init

Jean Delvare khali at linux-fr.org
Thu Sep 6 08:16:26 EDT 2012


It doesn't seem this spinlock was properly initialized.

Signed-off-by: Jean Delvare <khali at linux-fr.org>
Cc: Yoichi Yuasa <yuasa at linux-mips.org>
Cc: Dominik Brodowski <linux at dominikbrodowski.net>
---
I can't even build-test this.

 drivers/pcmcia/vrc4171_card.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-3.6-rc4.orig/drivers/pcmcia/vrc4171_card.c	2012-07-21 22:58:29.000000000 +0200
+++ linux-3.6-rc4/drivers/pcmcia/vrc4171_card.c	2012-09-06 14:07:40.976007788 +0200
@@ -246,6 +246,7 @@ static int pccard_init(struct pcmcia_soc
 	socket = &vrc4171_sockets[slot];
 	socket->csc_irq = search_nonuse_irq();
 	socket->io_irq = search_nonuse_irq();
+	spin_lock_init(&socket->lock);
 
 	return 0;
 }


-- 
Jean Delvare



More information about the linux-pcmcia mailing list