]> git.hungrycats.org Git - linux/commit
ematch: Fix auto-loading of ematch modules.
authorIgnacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Tue, 17 Feb 2015 19:15:20 +0000 (20:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 13:10:49 +0000 (14:10 +0100)
commit7f77f6c882bcd27a9bf750f96e9fe63ecbe443f5
treeabf1d2d31e9827330f6c63be64934d161118be83
parent1dd8e3243c434a4f45bf2a5d1d3a9a0baf37ef64
ematch: Fix auto-loading of ematch modules.

[ Upstream commit 34eea79e2664b314cab6a30fc582fdfa7a1bb1df ]

In tcf_em_validate(), after calling request_module() to load the
kind-specific module, set em->ops to NULL before returning -EAGAIN, so
that module_put() is not called again by tcf_em_tree_destroy().

Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Acked-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/ematch.c