Messages in this thread Patch in this message | | | Date | Fri, 06 Jun 2008 16:51:25 +0100 | From | Ben Dooks <> | Subject | [patch 08/15] MMC: Ensure host->mrq->data is valid in S3C24XX driver |
| |
Fix a crash if host->mrq->data is NULL on ending a transfer.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Index: linux-2.6.26-rc5-q/drivers/mmc/host/s3cmci.c =================================================================== --- linux-2.6.26-rc5-q.orig/drivers/mmc/host/s3cmci.c 2008-06-06 15:46:30.000000000 +0100 +++ linux-2.6.26-rc5-q/drivers/mmc/host/s3cmci.c 2008-06-06 15:46:32.000000000 +0100 @@ -330,7 +330,8 @@ static void pio_tasklet(unsigned long da (host->pio_active == XFER_READ)?"read":"write", host->pio_count, host->pio_words); - host->mrq->data->error = MMC_ERR_DMA; + if (host->mrq->data) + host->mrq->data->error = MMC_ERR_DMA; } finalize_request(host); -- Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
| |