summaryrefslogtreecommitdiff
path: root/net/sctp/input.c
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2013-05-29 00:34:28 +0400
committerDavid S. Miller <davem@davemloft.net>2013-05-29 10:49:07 +0400
commit158874cac61245b84e939c92c53db7000122b7b0 (patch)
tree0a425098fbfcf0001892f6d30519d476420b4aac /net/sctp/input.c
parentf7c0c2ae843b74f8dba55820cb0a3de19c976703 (diff)
downloadlinux-158874cac61245b84e939c92c53db7000122b7b0.tar.xz
sctp: Correct access to skb->{network, transport}_header
This corrects an regression introduced by "net: Use 16bits for *_headers fields of struct skbuff" when NET_SKBUFF_DATA_USES_OFFSET is not set. In that case sk_buff_data_t will be a pointer, however, skb->{network,transport}_header is now __u16. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r--net/sctp/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index 4b2c83146aa7..e328fe8f93f4 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;
- sk_buff_data_t saveip, savesctp;
+ __be16 saveip, savesctp;
int err;
struct net *net = dev_net(skb->dev);