Message ID | 1380223380-22451-6-git-send-email-grundler@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index deb0ee5..36cfe91 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -531,6 +531,10 @@ struct mmc_async_req *mmc_start_req(struct mmc_host *host, int start_err = 0; struct mmc_async_req *saved_areq = host->areq; + if (!saved_areq && !areq) + /* Nothing to do...some code is polling. */ + goto set_error; + /* Prepare a new request */ if (areq) mmc_pre_req(host, areq->mrq, !saved_areq);
In case threads "race" to harvest async req completions, just return. Signed-off-by: Grant Grundler <grundler@chromium.org> --- drivers/mmc/core/core.c | 4 ++++ 1 file changed, 4 insertions(+)