sctp: Correct byte order of access to skb->{network, transport}_header
authorSimon Horman <horms@verge.net.au>
Thu, 30 May 2013 20:36:11 +0000 (20:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 May 2013 08:41:36 +0000 (01:41 -0700)
Corrects an byte order conflict introduced by "sctp: Correct access to
skb->{network, transport}_header". All the values in question are host
byte order.

Reported-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/input.c

index e328fe8..6533d81 100644 (file)
@@ -589,7 +589,7 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info)
        struct sctp_association *asoc = NULL;
        struct sctp_transport *transport;
        struct inet_sock *inet;
-       __be16 saveip, savesctp;
+       __u16 saveip, savesctp;
        int err;
        struct net *net = dev_net(skb->dev);