Skip to content

Commit

Permalink
MMC: S3C24XX: Ensure host->mrq->data is valid
Browse files Browse the repository at this point in the history
Fix a crash if host->mrq->data is NULL on ending a transfer.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Ben Dooks authored and Pierre Ossman committed Jul 15, 2008
1 parent cf0984c commit 7c14450
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mmc/host/s3cmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

finalize_request(host);
Expand Down

0 comments on commit 7c14450

Please sign in to comment.