mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[NET]: Fix "ntohl(ntohs" bugs
Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ae181bc44c
commit
4195f81453
4 changed files with 4 additions and 4 deletions
|
|
@ -62,7 +62,7 @@ int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, u32 *spi, u32 *seq)
|
|||
case IPPROTO_COMP:
|
||||
if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr)))
|
||||
return -EINVAL;
|
||||
*spi = ntohl(ntohs(*(u16*)(skb->h.raw + 2)));
|
||||
*spi = htonl(ntohs(*(u16*)(skb->h.raw + 2)));
|
||||
*seq = 0;
|
||||
return 0;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue