linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] swim: Add missing spinlock init
@ 2012-09-06 11:48 Jean Delvare
  2012-09-06 12:03 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Delvare @ 2012-09-06 11:48 UTC (permalink / raw)
  To: LKML; +Cc: Finn Thain, Geert Uytterhoeven

It doesn't seem this spinlock was properly initialized.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Finn Thain <fthain@telegraphics.com.au>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
---
I can't even build-test this.

 drivers/block/swim.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-3.6-rc4.orig/drivers/block/swim.c	2012-07-21 22:58:29.000000000 +0200
+++ linux-3.6-rc4/drivers/block/swim.c	2012-09-06 13:09:26.713382169 +0200
@@ -845,6 +845,7 @@ static int __devinit swim_floppy_init(st
 		swd->unit[drive].swd = swd;
 	}
 
+	spin_lock_init(&swd->lock);
 	swd->queue = blk_init_queue(do_fd_request, &swd->lock);
 	if (!swd->queue) {
 		err = -ENOMEM;


-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-13  9:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-06 11:48 [PATCH] swim: Add missing spinlock init Jean Delvare
2012-09-06 12:03 ` Geert Uytterhoeven
2012-12-16 20:48   ` Jean Delvare
2013-01-13  9:42     ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).