mmc: wbsd: safer check if dma_addr is valid DMA address
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 13 Jan 2017 22:52:51 +0000 (01:52 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:26 +0000 (13:20 +0100)
commite81c022a00cd91b0d555d9d9194d421e3b8d642c
tree6864c26bc8142d3d297180ccaf266c97216db36c
parente28d6f048799acb0014491e6b74e580d84bd7916
mmc: wbsd: safer check if dma_addr is valid DMA address

host->dma_addr can store a value that is not returned by the DMA API,
so it is safer to check if is a valid DMA address indirectly.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/wbsd.c