netfilter: nfnetlink: don't probe module if it exists
authorFlorian Westphal <fw@strlen.de>
Tue, 27 Oct 2015 12:20:25 +0000 (13:20 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 28 Oct 2015 02:40:50 +0000 (03:40 +0100)
commitdbc3617f4c1f9fcbe63612048cb9583fea1e11ab
tree5078f798588f8f080d8d52495d036d9ce5a8aa71
parent94f9cd81436c85d8c3a318ba92e236ede73752fc
netfilter: nfnetlink: don't probe module if it exists

nfnetlink_bind request_module()s all the time as nfnetlink_get_subsys()
shifts the argument by 8 to obtain the subsys id.

So using type instead of type << 8 always returns NULL.

Fixes: 03292745b02d11 ("netlink: add nlk->netlink_bind hook for module auto-loading")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink.c