diff options
author | Wenchao Hao <[email protected]> | 2022-03-31 21:10:19 -0400 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-04-06 22:37:49 -0400 |
commit | 03252259e18e63eb56a0d29c2fefcc30b58b812b (patch) | |
tree | c650f31b845a335e942630b1e121a7971e352837 /lib/mpi/mpiutil.c | |
parent | 61144d83376a136d8aa7a9e057d916c505bfb75f (diff) |
scsi: sd: Clean up gendisk if device_add_disk() failed
We forgot to call blk_cleanup_disk() when device_add_disk() failed. This
would cause a memory leak of gendisk and sched_tags allocated in
elevator_init_mq()
Reference:https://syzkaller.appspot.com/x/log.txt?x=13b41dcb700000
Reported-and-tested-by: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wenchao Hao <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions