diff options
author | Peter Maydell | 2015-05-26 20:46:32 +0200 |
---|---|---|
committer | Riku Voipio | 2015-06-16 07:21:01 +0200 |
commit | 876e23cb2e545148a0ee4effda5c63c861855941 (patch) | |
tree | 75a5046e01f5b4b92e6638c41e336dfd1495c4de /hw/core/nmi.c | |
parent | linux-user: Fix length handling in host_to_target_cmsg (diff) | |
download | qemu-876e23cb2e545148a0ee4effda5c63c861855941.tar.gz qemu-876e23cb2e545148a0ee4effda5c63c861855941.tar.xz qemu-876e23cb2e545148a0ee4effda5c63c861855941.zip |
linux-user: use __get_user and __put_user in cmsg conversions
The target payloads in cmsg conversions may not have the alignment
required by the host. Using the get_user and put_user functions is
the easiest way to handle this and also do the byte-swapping we
require.
(Note that prior to this commit target_to_host_cmsg was incorrectly
using __put_user() rather than __get_user() for the SCM_CREDENTIALS
conversion, which meant it wasn't getting the benefit of the
misalignment handling.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'hw/core/nmi.c')
0 files changed, 0 insertions, 0 deletions