Skip to content
Commit 770d7432 authored by Adrian Hunter's avatar Adrian Hunter Committed by Chris Ball
Browse files

mmc: omap_hsmmc: fix oops in omap_hsmmc_dma_cb()



In the case of an I/O error, the DMA will have been cleaned up in
the MMC interrupt and the request structure pointer will be null.

In that case, it is essential to check if the DMA is over before
dereferencing host->mrq->data.

Signed-off-by: default avatarAdrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 3796fb8a
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