diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-06-30 22:40:31 +0100 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2008-07-15 14:14:47 +0200 |
commit | 7c14450ed6ab4ed453b2bf216ca3aaa7a5402af3 (patch) | |
tree | 034ef0450ffd5136acad12372cb94ef7b1952bb6 /drivers | |
parent | cf0984c8edf63017fcc2ead212ca057877e345df (diff) | |
download | op-kernel-dev-7c14450ed6ab4ed453b2bf216ca3aaa7a5402af3.zip op-kernel-dev-7c14450ed6ab4ed453b2bf216ca3aaa7a5402af3.tar.gz |
MMC: S3C24XX: Ensure host->mrq->data is valid
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/s3cmci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index 4fd11d8..ffd9269 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c @@ -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); |