diff options
author | 2022-07-30 17:27:48 +0800 | |
---|---|---|
committer | 2022-08-02 21:13:40 -0600 | |
commit | 93d71ec89d5fb2bc431fe7e0ff7ca819bf6dc601 (patch) | |
tree | 70a4a44f61d172bcca0c97b49d8d7f3c063837db /tools/perf/scripts/python | |
parent | ublk_drv: cancel device even though disk isn't up (diff) | |
download | linux-dev-93d71ec89d5fb2bc431fe7e0ff7ca819bf6dc601.tar.xz linux-dev-93d71ec89d5fb2bc431fe7e0ff7ca819bf6dc601.zip |
ublk_drv: fix ublk device leak in case that add_disk fails
->free_disk is only called after disk is added successfully, so
drop ublk device reference in case of add_disk() failure.
Fixes: 6d9e6dfdf3b2 ("ublk: defer disk allocation")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220730092750.1118167-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions