Skip to content

Commit

Permalink
swim: Add missing spinlock init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean Delvare authored and Geert Uytterhoeven committed Feb 9, 2013
1 parent 836dc9e commit 243eeb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/swim.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ static int swim_floppy_init(struct swim_priv *swd)
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;
Expand Down

0 comments on commit 243eeb7

Please sign in to comment.