}
 }
 
+static bool msdc_data_prepared(struct mmc_data *data)
+{
+       return data->host_cookie & MSDC_PREPARE_FLAG;
+}
+
 static void msdc_unprepare_data(struct msdc_host *host, struct mmc_data *data)
 {
        if (data->host_cookie & MSDC_ASYNC_FLAG)
        WARN_ON(!host->hsq_en && host->mrq);
        host->mrq = mrq;
 
-       if (mrq->data)
+       if (mrq->data) {
                msdc_prepare_data(host, mrq->data);
+               if (!msdc_data_prepared(mrq->data)) {
+                       /*
+                        * Failed to prepare DMA area, fail fast before
+                        * starting any commands.
+                        */
+                       mrq->cmd->error = -ENOSPC;
+                       mmc_request_done(mmc_from_priv(host), mrq);
+                       return;
+               }
+       }
 
        /* if SBC is required, we have HW option and SW option.
         * if HW option is enabled, and SBC does not have "special" flags,