netfilter: ebtables: put module reference when an incorrect extension is found
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 23 Aug 2016 08:20:31 +0000 (10:20 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 25 Aug 2016 11:18:06 +0000 (13:18 +0200)
commit4249fc1f023a2106170bbf715e2e1a0ebc2d5b1f
treef284a9e589afb5f5c9cf47bf03554c03dd145351
parent960fa72f67f1be6891d63a5518860d1ae4e14b88
netfilter: ebtables: put module reference when an incorrect extension is found

commit bcf493428840 ("netfilter: ebtables: Fix extension lookup with
identical name") added a second lookup in case the extension that was
found during the first lookup matched another extension with the same
name, but didn't release the reference on the incorrect module.

Fixes: bcf493428840 ("netfilter: ebtables: Fix extension lookup with identical name")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/ebtables.c