aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/s3cmci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c
index 4fd11d8864eb..ffd9269a1874 100644
--- a/drivers/mmc/host/s3cmci.c
+++ b/drivers/mmc/host/s3cmci.c
@@ -353,7 +353,8 @@ static void pio_tasklet(unsigned long data)
353 (host->pio_active == XFER_READ) ? "read" : "write", 353 (host->pio_active == XFER_READ) ? "read" : "write",
354 host->pio_count, host->pio_words); 354 host->pio_count, host->pio_words);
355 355
356 host->mrq->data->error = -EINVAL; 356 if (host->mrq->data)
357 host->mrq->data->error = -EINVAL;
357 } 358 }
358 359
359 finalize_request(host); 360 finalize_request(host);