net: Fix ns_capable check in sock_diag_put_filterinfo
[firefly-linux-kernel-4.4.55.git] / net / packet / diag.c
index a9584a2f6d6948cd74a5179fcf3e11bc6403b45a..ec8b6e8a80b1dccce33001ada5a62c2e91ebf9ce 100644 (file)
@@ -171,7 +171,7 @@ static int sk_diag_fill(struct sock *sk, struct sk_buff *skb,
                goto out_nlmsg_trim;
 
        if ((req->pdiag_show & PACKET_SHOW_FILTER) &&
-           sock_diag_put_filterinfo(user_ns, sk, skb, PACKET_DIAG_FILTER))
+           sock_diag_put_filterinfo(sk, skb, PACKET_DIAG_FILTER))
                goto out_nlmsg_trim;
 
        return nlmsg_end(skb, nlh);