提交 b1476451 编写于 作者: J Jens Axboe

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()
...@@ -4593,8 +4593,10 @@ static int __init do_floppy_init(void) ...@@ -4593,8 +4593,10 @@ static int __init do_floppy_init(void)
goto out_put_disk; goto out_put_disk;
err = floppy_alloc_disk(drive, 0); err = floppy_alloc_disk(drive, 0);
if (err) if (err) {
blk_mq_free_tag_set(&tag_sets[drive]);
goto out_put_disk; goto out_put_disk;
}
timer_setup(&motor_off_timer[drive], motor_off_callback, 0); timer_setup(&motor_off_timer[drive], motor_off_callback, 0);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册