]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: bridge: don't leak skb in error paths
authorFlorian Westphal <fw@strlen.de>
Tue, 30 Jun 2015 20:27:51 +0000 (22:27 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 2 Jul 2015 15:59:26 +0000 (17:59 +0200)
commit0b5caef2c726f561aca3eca4f46d2591e8ec8cf9
tree94a1f2b00b55baf735ca1cb299117b6b7a611a1b
parentcbdfe517bfa30dad8e4b62187968efb6c3090790
netfilter: bridge: don't leak skb in error paths

br_nf_dev_queue_xmit must free skb in its error path.
NF_DROP is misleading -- its an okfn, not a netfilter hook.

Fixes: 70ab905bdb5fb ("bridge : Sanitize skb before it enters the IP stack")
Fixes: 46d1316b8c027 ("netfilter: bridge: forward IPv6 fragmented packets")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/br_netfilter_hooks.c