diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2015-05-26 19:46:32 +0100 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2015-06-16 08:21:01 +0300 |
commit | 876e23cb2e545148a0ee4effda5c63c861855941 (patch) | |
tree | 75a5046e01f5b4b92e6638c41e336dfd1495c4de /qemu-doc.texi | |
parent | c2aeb2586bd258ad76fcfe308f883075e73ff1d2 (diff) |
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 'qemu-doc.texi')
0 files changed, 0 insertions, 0 deletions