Commit a6729955 authored by Wei Yongjun's avatar Wei Yongjun Committed by Pablo Neira Ayuso
Browse files

netfilter: nfnetlink_queue: remove pointless conditional before kfree_skb()



Remove pointless conditional before kfree_skb().
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 5693d68d
......@@ -406,8 +406,7 @@ nfqnl_build_packet_message(struct nfqnl_instance *queue,
return skb;
nla_put_failure:
if (skb)
kfree_skb(skb);
kfree_skb(skb);
net_err_ratelimited("nf_queue: error creating packet message\n");
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment