Merge tag 'floppy-for-6.2' of https://github.com/evdenis/linux-floppy into for-6.2/block
Pull floppy fix from Denis: "Floppy patch for 6.2 The patch from Yuan Can fixes a memory leak in floppy init code. Signed-off-by: Denis Efremov <efremov@linux.com>" * tag 'floppy-for-6.2' of https://github.com/evdenis/linux-floppy: floppy: Fix memory leak in do_floppy_init()
This commit is contained in:
@@ -4593,8 +4593,10 @@ static int __init do_floppy_init(void)
|
||||
goto out_put_disk;
|
||||
|
||||
err = floppy_alloc_disk(drive, 0);
|
||||
if (err)
|
||||
if (err) {
|
||||
blk_mq_free_tag_set(&tag_sets[drive]);
|
||||
goto out_put_disk;
|
||||
}
|
||||
|
||||
timer_setup(&motor_off_timer[drive], motor_off_callback, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user