]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: fix disk/queue leak in case of adding disk failure
authorMing Lei <ming.lei@redhat.com>
Mon, 18 Jul 2022 16:08:51 +0000 (00:08 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Jul 2022 19:12:11 +0000 (13:12 -0600)
commit203cb3173cd78b58e8fbe43e668b93fcacca8fee
tree0bcb3d952a00800e6fde5f26a91231bc40d219eb
parent1b778f7fecc95fc51abc0711d26300b65e9c4669
mmc: fix disk/queue leak in case of adding disk failure

In case of adding disk failure, the disk needs to be released, otherwise
disk/queue is leaked.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220718160851.312972-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/mmc/core/block.c