mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
block/swim: Remove extra put_disk() call from error path
Cc: Laurent Vivier <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: [email protected] # v4.14+
Fixes: 103db8b2df ("[PATCH] swim: stop sharing request queue across multiple gendisks")
Tested-by: Stan Johnson <[email protected]>
Signed-off-by: Finn Thain <[email protected]>
Acked-by: Laurent Vivier <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
7ae6a2b6cc
commit
c1d6207cc0
1 changed files with 0 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue