Skip to content
Commit 2317b328 authored by Peter Maydell's avatar Peter Maydell Committed by Michael Roth
Browse files

nbd: Don't use *_to_cpup() functions



The *_to_cpup() functions are not very useful, as they simply do
a pointer dereference and then a *_to_cpu(). Instead use either:
 * ld*_*_p(), if the data is at an address that might not be
   correctly aligned for the load
 * a local dereference and *_to_cpu(), if the pointer is
   the correct type and known to be correctly aligned

Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Message-Id: <1465570836-22211-1-git-send-email-peter.maydell@linaro.org>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 773dce3c)
* context prereq for 7423f417
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent ce00e529
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment