aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2022-07-30 09:27:48 +0000
committerJens Axboe <[email protected]>2022-08-03 03:13:40 +0000
commit93d71ec89d5fb2bc431fe7e0ff7ca819bf6dc601 (patch)
tree70a4a44f61d172bcca0c97b49d8d7f3c063837db /fs/ext4/fast_commit.c
parentublk_drv: cancel device even though disk isn't up (diff)
downloadkernel-93d71ec89d5fb2bc431fe7e0ff7ca819bf6dc601.tar.gz
kernel-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 <[email protected]> Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions