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

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

Merge "mmc: core: prevent calling ->post_req 2 times if request submit fails"

parents ef2997ff 467871d9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1605,8 +1605,7 @@ struct mmc_async_req *mmc_start_req(struct mmc_host *host,
	if (host->areq)
		mmc_post_req(host, host->areq->mrq, 0);

	 /* Cancel a prepared request if it was not started. */
	if ((err || start_err) && areq)
	if (err && areq)
		mmc_post_req(host, areq->mrq, -EINVAL);

	if (err)