netfilter: nft_compat: use nfnetlink_unicast()
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 1/1 netfilter: nft_compat: use nfnetlink_unicast()
nfnetlink_unicast() translates EAGAIN to ENOBUFS, since EAGAIN is reserved to report missing module dependencies to the nfnetlink core.
Reported-by Yajun Deng <[email protected]>
Fixes e0241ae6ac59 ("netfilter: use nfnetlink_unicast()")
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- net/netfilter/nft_compat.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
net/netfilter/nft_compat.c +1 -4
@@ -683,10 +683,7 @@ static int nfnl_compat_get_rcu(struct sk_buff *skb, goto out_put; } - ret =netlink_unicast (info->sk, skb2,NETLINK_CB (skb).portid, -MSG_DONTWAIT ); -if (ret >0 ) - ret =0 ; + ret =nfnetlink_unicast (skb2, info->net,NETLINK_CB (skb).portid); out_put:rcu_read_lock ();module_put (THIS_MODULE );
Signature · 1 line
2.20.1