diff options
author | Jean Delvare <khali@linux-fr.org> | 2012-09-06 07:48:30 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-02-09 08:23:33 -0500 |
commit | 243eeb78906e17a18faacb492facd3284993f220 (patch) | |
tree | d34c4b4656cb5b8b0088c1ec640706a4377a81a4 /drivers/block | |
parent | 836dc9e3fbbab0c30aa6e664417225f5c1fb1c39 (diff) |
swim: Add missing spinlock init
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>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/swim.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/swim.c b/drivers/block/swim.c index 765fa2b3d337..8766a2257091 100644 --- a/drivers/block/swim.c +++ b/drivers/block/swim.c | |||
@@ -844,6 +844,7 @@ static int swim_floppy_init(struct swim_priv *swd) | |||
844 | swd->unit[drive].swd = swd; | 844 | swd->unit[drive].swd = swd; |
845 | } | 845 | } |
846 | 846 | ||
847 | spin_lock_init(&swd->lock); | ||
847 | swd->queue = blk_init_queue(do_fd_request, &swd->lock); | 848 | swd->queue = blk_init_queue(do_fd_request, &swd->lock); |
848 | if (!swd->queue) { | 849 | if (!swd->queue) { |
849 | err = -ENOMEM; | 850 | err = -ENOMEM; |