summaryrefslogtreecommitdiffstats
path: root/drivers/block/swim.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2018-04-11 20:50:14 -0400
committerJens Axboe <axboe@kernel.dk>2018-04-16 21:49:35 -0600
commitc1d6207cc0eef2a7f8551f9c7420d8776268f6e1 (patch)
tree861d0ad9af79e0751d02b05079bea87bd23774c0 /drivers/block/swim.c
parent7ae6a2b6cc058005ee3d0d2b9ce27688e51afa4b (diff)
downloadlinux-c1d6207cc0eef2a7f8551f9c7420d8776268f6e1.tar.bz2
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: 103db8b2dfa5 ("[PATCH] swim: stop sharing request queue across multiple gendisks") Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Acked-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/swim.c')
-rw-r--r--drivers/block/swim.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/swim.c b/drivers/block/swim.c
index 2cdfc0db5966..0258a96e0c46 100644
--- a/drivers/block/swim.c
+++ b/drivers/block/swim.c
@@ -861,7 +861,6 @@ static int swim_floppy_init(struct swim_priv *swd)
&swd->lock);
if (!swd->unit[drive].disk->queue) {
err = -ENOMEM;
- put_disk(swd->unit[drive].disk);
goto exit_put_disks;
}
blk_queue_bounce_limit(swd->unit[drive].disk->queue,