Loading net/netlink/af_netlink.c +2 −4 Original line number Diff line number Diff line Loading @@ -170,7 +170,6 @@ EXPORT_SYMBOL_GPL(netlink_remove_tap); static bool netlink_filter_tap(const struct sk_buff *skb) { struct sock *sk = skb->sk; bool pass = false; /* We take the more conservative approach and * whitelist socket protocols that may pass. Loading @@ -184,11 +183,10 @@ static bool netlink_filter_tap(const struct sk_buff *skb) case NETLINK_FIB_LOOKUP: case NETLINK_NETFILTER: case NETLINK_GENERIC: pass = true; break; return true; } return pass; return false; } static int __netlink_deliver_tap_skb(struct sk_buff *skb, Loading Loading
net/netlink/af_netlink.c +2 −4 Original line number Diff line number Diff line Loading @@ -170,7 +170,6 @@ EXPORT_SYMBOL_GPL(netlink_remove_tap); static bool netlink_filter_tap(const struct sk_buff *skb) { struct sock *sk = skb->sk; bool pass = false; /* We take the more conservative approach and * whitelist socket protocols that may pass. Loading @@ -184,11 +183,10 @@ static bool netlink_filter_tap(const struct sk_buff *skb) case NETLINK_FIB_LOOKUP: case NETLINK_NETFILTER: case NETLINK_GENERIC: pass = true; break; return true; } return pass; return false; } static int __netlink_deliver_tap_skb(struct sk_buff *skb, Loading