net: filter: split 'struct sk_filter' into socket and bpf parts
[firefly-linux-kernel-4.4.55.git] / net / core / sock_diag.c
index 57d922320c59c782e034cac5180438e50c9ba5e4..ad704c757bb4a6e48c685fe0478ce6525b08a3ab 100644 (file)
@@ -68,7 +68,7 @@ int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk,
        if (!filter)
                goto out;
 
-       fprog = filter->orig_prog;
+       fprog = filter->prog->orig_prog;
        flen = bpf_classic_proglen(fprog);
 
        attr = nla_reserve(skb, attrtype, flen);