aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
Diffstat (limited to 'net/packet')
-rw-r--r--net/packet/af_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 3304caa65347..c620bd9ae3de 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -1537,7 +1537,7 @@ static int packet_getname(struct socket *sock, struct sockaddr *uaddr,
1537 struct net_device *dev; 1537 struct net_device *dev;
1538 struct sock *sk = sock->sk; 1538 struct sock *sk = sock->sk;
1539 struct packet_sock *po = pkt_sk(sk); 1539 struct packet_sock *po = pkt_sk(sk);
1540 struct sockaddr_ll *sll = (struct sockaddr_ll *)uaddr; 1540 DECLARE_SOCKADDR(struct sockaddr_ll *, sll, uaddr);
1541 1541
1542 if (peer) 1542 if (peer)
1543 return -EOPNOTSUPP; 1543 return -EOPNOTSUPP;