]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2015 20:30:56 +0000 (15:30 -0500)
commit4f08e6ec4b7f05c6e21d09591405e67b7a831ad8
treefac30f2ab8adee79b12cdafd428df0ec6eaf984f
parent6ffae8a1dec0937c433c3379409be2dfe3d74a6c
ematch: Fix auto-loading of ematch modules.

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>
net/sched/ematch.c