Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff4c0b52 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: block: Fix error path of mmc_blk_alloc_req()"

parents 3c673206 26899613
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2881,8 +2881,11 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card,
 err_putdisk:
	put_disk(md->disk);
 err_kfree:
	if (!subname)
		__clear_bit(md->name_idx, name_use);
	kfree(md);
 out:
	__clear_bit(devidx, dev_use);
	return ERR_PTR(ret);
}