Commit c1d6207c authored by Finn Thain's avatar Finn Thain Committed by Jens Axboe

block/swim: Remove extra put_disk() call from error path

Cc: Laurent Vivier <lvivier@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: stable@vger.kernel.org # v4.14+
Fixes: 103db8b2 ("[PATCH] swim: stop sharing request queue across multiple gendisks")
Tested-by: default avatarStan Johnson <userm57@yahoo.com>
Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Acked-by: default avatarLaurent Vivier <lvivier@redhat.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 7ae6a2b6
...@@ -861,7 +861,6 @@ static int swim_floppy_init(struct swim_priv *swd) ...@@ -861,7 +861,6 @@ static int swim_floppy_init(struct swim_priv *swd)
&swd->lock); &swd->lock);
if (!swd->unit[drive].disk->queue) { if (!swd->unit[drive].disk->queue) {
err = -ENOMEM; err = -ENOMEM;
put_disk(swd->unit[drive].disk);
goto exit_put_disks; goto exit_put_disks;
} }
blk_queue_bounce_limit(swd->unit[drive].disk->queue, blk_queue_bounce_limit(swd->unit[drive].disk->queue,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment