mirror of
https://github.com/joel16/android_kernel_sony_msm8994_rework.git
synced 2025-02-03 16:22:51 +00:00
[IPX]: Endian bug in ipxrtr_route_packet()
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3cc0e87398
commit
f8d5962112
@ -238,7 +238,7 @@ int ipxrtr_route_packet(struct sock *sk, struct sockaddr_ipx *usipx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Apply checksum. Not allowed on 802.3 links. */
|
/* Apply checksum. Not allowed on 802.3 links. */
|
||||||
if (sk->sk_no_check || intrfc->if_dlink_type == IPX_FRAME_8023)
|
if (sk->sk_no_check || intrfc->if_dlink_type == htons(IPX_FRAME_8023))
|
||||||
ipx->ipx_checksum = 0xFFFF;
|
ipx->ipx_checksum = 0xFFFF;
|
||||||
else
|
else
|
||||||
ipx->ipx_checksum = ipx_cksum(ipx, len + sizeof(struct ipxhdr));
|
ipx->ipx_checksum = ipx_cksum(ipx, len + sizeof(struct ipxhdr));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user