diff mbox

[net-next] sctp: Correct byte order of access to skb->{network, transport}_header

Message ID 1369982171-22317-1-git-send-email-horms@verge.net.au
State Accepted
Headers show

Commit Message

Simon Horman May 31, 2013, 6:36 a.m. UTC
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>
---
 net/sctp/input.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller May 31, 2013, 8:41 a.m. UTC | #1
From: Simon Horman <horms@verge.net.au>
Date: Fri, 31 May 2013 15:36:11 +0900

> 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>

Applied, thanks Simon.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/sctp/input.c b/net/sctp/input.c
index e328fe8..6533d81 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -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);