]> git.ipfire.org Git - people/ms/linux.git/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)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 14 Mar 2015 19:37:11 +0000 (15:37 -0400)
commitcbac74b71f36968c3b54a6c0d068defec3851b9b
treefbb20733cc3ade78659ae41b7f059e69cfdbeff3
parente6aa677fd2f9ebc21b5b623be5a2a4088532dece
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: Sasha Levin <sasha.levin@oracle.com>
net/sched/ematch.c