提交 7c14450e 编写于 作者: B Ben Dooks 提交者: 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: NBen Dooks <ben-linux@fluff.org>
Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
上级 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;
}
finalize_request(host);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册