summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPeter Maydell2020-11-10 22:52:50 +0100
committerJason Wang2020-11-11 13:34:36 +0100
commit71182187ddae5d5b17bd48464f719798321484ed (patch)
tree1f14c3a4fdbfcbb84a670d6bab9031aa2144f9d3 /docs
parenthw/net/can/ctucan_core: Handle big-endian hosts (diff)
downloadqemu-71182187ddae5d5b17bd48464f719798321484ed.tar.gz
qemu-71182187ddae5d5b17bd48464f719798321484ed.tar.xz
qemu-71182187ddae5d5b17bd48464f719798321484ed.zip
hw/net/can/ctucan_core: Use stl_le_p to write to tx_buffers
Instead of casting an address within a uint8_t array to a uint32_t*, use stl_le_p(). This handles possibly misaligned addresses which would otherwise crash on some hosts. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz> Tested-by: Pavel Pisa <pisa@cmp.felk.cvut.cz> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions