diff options
author | Yu Kuai <[email protected]> | 2022-10-22 10:16:15 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-10-22 15:14:38 -0600 |
commit | 02341a08c9dec5a88527981b0bdf0fb6f7499cbf (patch) | |
tree | 8f07b907b29715c6f55769aa852192ba73152f74 /lib/mpi/mpi-sub-ui.c | |
parent | 2db96217e7e515071726ca4ec791742c4202a1b2 (diff) |
block: fix memory leak for elevator on add_disk failure
The default elevator is allocated in the beginning of device_add_disk(),
however, it's not freed in the following error path.
Fixes: 50e34d78815e ("block: disable the elevator int del_gendisk")
Signed-off-by: Yu Kuai <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Jason Yan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions