summaryrefslogtreecommitdiffstats
path: root/kernel/net/llc/af_llc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/llc/af_llc.c')
-rw-r--r--kernel/net/llc/af_llc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/net/llc/af_llc.c b/kernel/net/llc/af_llc.c
index 8dab4e569..bb8edb9ef 100644
--- a/kernel/net/llc/af_llc.c
+++ b/kernel/net/llc/af_llc.c
@@ -626,6 +626,7 @@ static void llc_cmsg_rcv(struct msghdr *msg, struct sk_buff *skb)
if (llc->cmsg_flags & LLC_CMSG_PKTINFO) {
struct llc_pktinfo info;
+ memset(&info, 0, sizeof(info));
info.lpi_ifindex = llc_sk(skb->sk)->dev->ifindex;
llc_pdu_decode_dsap(skb, &info.lpi_sap);
llc_pdu_decode_da(skb, info.lpi_mac);