OSDN Git Service

sd: sdhci: Fix ADMA dma_memory_read access
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Mon, 4 Aug 2014 13:41:54 +0000 (14:41 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Aug 2014 13:41:54 +0000 (14:41 +0100)
commit9db11cef8c557ccc6e0a3e7eca786b197eed5f59
tree0d0ac6b000eb5dc98338db0e990850b5914cc554
parentfab46932393366792b438c078b48c196e9d35a1a
sd: sdhci: Fix ADMA dma_memory_read access

This dma_memory_read was giving too big a size when begin was non-zero.
This could cause segfaults in some circumstances. Fix.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd/sdhci.c