Message ID | 1460979834-24582-2-git-send-email-ulf.hansson@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 8a0147d..9aaf22e 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -2289,6 +2289,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, err_kfree: kfree(md); out: + __clear_bit(devidx, dev_use); return ERR_PTR(ret); }
If the allocation of a new partition fails, let's make sure to also release the previously picked device index. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- drivers/mmc/card/block.c | 1 + 1 file changed, 1 insertion(+) -- 1.9.1