aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet/diag.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/packet/diag.c')
-rw-r--r--net/packet/diag.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/packet/diag.c b/net/packet/diag.c
index 822fe9b33a49..a9584a2f6d69 100644
--- a/net/packet/diag.c
+++ b/net/packet/diag.c
@@ -170,6 +170,10 @@ static int sk_diag_fill(struct sock *sk, struct sk_buff *skb,
170 sock_diag_put_meminfo(sk, skb, PACKET_DIAG_MEMINFO)) 170 sock_diag_put_meminfo(sk, skb, PACKET_DIAG_MEMINFO))
171 goto out_nlmsg_trim; 171 goto out_nlmsg_trim;
172 172
173 if ((req->pdiag_show & PACKET_SHOW_FILTER) &&
174 sock_diag_put_filterinfo(user_ns, sk, skb, PACKET_DIAG_FILTER))
175 goto out_nlmsg_trim;
176
173 return nlmsg_end(skb, nlh); 177 return nlmsg_end(skb, nlh);
174 178
175out_nlmsg_trim: 179out_nlmsg_trim: