lkml.org 
[lkml]   [2015]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.2 194/221] ematch: Fix auto-loading of ematch modules.
    3.2.69-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>

    [ 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: Ben Hutchings <ben@decadent.org.uk>
    ---
    net/sched/ematch.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/net/sched/ematch.c
    +++ b/net/sched/ematch.c
    @@ -227,6 +227,7 @@ static int tcf_em_validate(struct tcf_pr
    * to replay the request.
    */
    module_put(em->ops->owner);
    + em->ops = NULL;
    err = -EAGAIN;
    }
    #endif


    \
     
     \ /
      Last update: 2015-05-05 04:41    [W:2.151 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site