]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: omap_hsmmc: fix oops in omap_hsmmc_dma_cb()
authorAdrian Hunter <adrian.hunter@nokia.com>
Fri, 6 May 2011 09:14:11 +0000 (12:14 +0300)
committerChris Ball <cjb@laptop.org>
Thu, 21 Jul 2011 14:35:04 +0000 (10:35 -0400)
commit6ffdc882a85318591a87401ccccbf9530c8e3a45
treebfd5ec0bff4f022e8fd713e8b61bcf4bb04f901f
parentd481309ee168aafe829b2b5b55cd5b31dd19a463
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: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c