Peter Maydell
71182187dd
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>
2020-11-11 20:34:36 +08:00
..
2020-11-11 20:34:36 +08:00
2020-09-18 14:12:32 -04:00
2020-09-09 09:27:09 -04:00
2020-03-31 21:14:35 +08:00
2020-08-28 10:02:45 +01:00
2020-09-09 15:54:18 -07:00
2020-09-18 14:12:32 -04:00
2017-09-08 08:17:37 +08:00
2020-09-09 09:27:09 -04:00
2020-09-10 16:20:49 +02:00
2020-03-31 21:14:35 +08:00
2020-09-18 14:12:32 -04:00
2019-08-16 13:31:52 +02:00
2019-06-12 13:20:21 +02:00
2020-05-15 07:08:14 +02:00
2020-09-18 14:12:32 -04:00
2020-09-01 14:21:50 +02:00
2020-03-31 21:14:35 +08:00
2020-03-31 21:14:35 +08:00
2020-07-03 16:59:41 +01:00
2020-09-30 19:11:37 +02:00
2020-09-18 14:12:32 -04:00
2020-05-15 07:08:14 +02:00
2020-06-15 22:05:28 +02:00
2020-08-27 14:04:54 -04:00
2020-08-21 06:30:29 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-04-30 11:52:28 +01:00
2020-09-18 14:12:32 -04:00
2020-05-15 07:08:14 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2020-03-03 18:04:47 +08:00
2020-03-03 18:04:47 +08:00
2020-08-04 14:14:48 +08:00
2020-07-21 21:30:39 +08:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2019-08-16 13:31:53 +02:00
2020-01-07 17:24:29 +04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-10-28 01:08:53 +11:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-07-03 16:59:41 +01:00
2020-08-21 06:18:24 -04:00
2020-08-27 14:04:54 -04:00
2020-09-18 14:12:32 -04:00
2020-07-03 07:57:04 -04:00
2020-07-07 07:59:51 -04:00
2020-11-11 16:52:23 +08:00
2017-11-20 11:08:00 +08:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00
2017-11-20 11:08:00 +08:00
2016-07-12 16:20:46 +02:00
2019-08-16 13:31:52 +02:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-09 09:27:09 -04:00