Commit 7c14450e authored by Ben Dooks's avatar Ben Dooks Committed by Pierre Ossman

MMC: S3C24XX: Ensure host->mrq->data is valid

Fix a crash if host->mrq->data is NULL on ending a transfer.
Signed-off-by: default avatarBen Dooks <>
Signed-off-by: default avatarPierre Ossman <>
parent cf0984c8
......@@ -353,7 +353,8 @@ static void pio_tasklet(unsigned long data)
(host->pio_active == XFER_READ) ? "read" : "write",
host->pio_count, host->pio_words);
host->mrq->data->error = -EINVAL;
if (host->mrq->data)
host->mrq->data->error = -EINVAL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment