aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/ip_sockglue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c
index 624b534201e2..43c05854d752 100644
--- a/net/ipv4/ip_sockglue.c
+++ b/net/ipv4/ip_sockglue.c
@@ -127,11 +127,11 @@ static void ip_cmsg_recv_security(struct msghdr *msg, struct sk_buff *skb)
127 security_release_secctx(secdata, seclen); 127 security_release_secctx(secdata, seclen);
128} 128}
129 129
130void ip_cmsg_recv_dstaddr(struct msghdr *msg, struct sk_buff *skb) 130static void ip_cmsg_recv_dstaddr(struct msghdr *msg, struct sk_buff *skb)
131{ 131{
132 struct sockaddr_in sin; 132 struct sockaddr_in sin;
133 struct iphdr *iph = ip_hdr(skb); 133 struct iphdr *iph = ip_hdr(skb);
134 u16 *ports = (u16 *) skb_transport_header(skb); 134 __be16 *ports = (__be16 *)skb_transport_header(skb);
135 135
136 if (skb_transport_offset(skb) + 4 > skb->len) 136 if (skb_transport_offset(skb) + 4 > skb->len)
137 return; 137 return;