]> Git Repo - qemu.git/commit
dma: omap: check dma channel data_type
authorPrasad J Pandit <[email protected]>
Fri, 27 Jan 2017 15:20:25 +0000 (15:20 +0000)
committerPeter Maydell <[email protected]>
Fri, 27 Jan 2017 15:29:08 +0000 (15:29 +0000)
commit146871c33eb70ca7090a0a55e69e5a8f9b5eb102
tree49cee75212273c64026621f51e499deaaf3dec15
parentd87576e38df760ef1cb635197d51f207e2a8eda9
dma: omap: check dma channel data_type

When setting dma channel 'data_type', if (value & 3) == 3,
the set 'data_type' is said to be bad. This also leads to an
OOB access in 'omap_dma_transfer_generic', while doing
cpu_physical_memory_r/w operations. Add check to avoid it.

Reported-by: Jiang Xin <[email protected]>
Signed-off-by: Prasad J Pandit <[email protected]>
Message-id: 20170127120528[email protected]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/dma/omap_dma.c
This page took 0.028404 seconds and 4 git commands to generate.