]> git.baikalelectronics.ru Git - kernel.git/commit
VSOCK: fix loopback on big-endian systems
authorClaudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Wed, 20 Jun 2018 13:51:51 +0000 (15:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jun 2018 00:34:08 +0000 (09:34 +0900)
commit23c85b4c5824852bf0d3ee913d1e09a8e0aceefb
treed8980a6e8d576cc6a84807fb1925017ba1235fc4
parent4fa93b8047ed9436d424f83c4ae8db1d25940d1b
VSOCK: fix loopback on big-endian systems

The dst_cid and src_cid are 64 bits, therefore 64 bit accessors should be
used, and in fact in virtio_transport_common.c only 64 bit accessors are
used. Using 32 bit accessors for 64 bit values breaks big endian systems.

This patch fixes a wrong use of le32_to_cpu in virtio_transport_send_pkt.

Fixes: 86c408d328aebcd46a15 ("VSOCK: add loopback to virtio_transport")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/virtio_transport.c