net sched actions: decrement module reference count after table flush.

am: c10ffe988f

Change-Id: Ie90a3e257c06baeb2c1e8b190da986990a5c2e7c
This commit is contained in:
Roman Mashak
2017-03-22 11:31:51 +00:00
committed by android-build-merger

View File

@@ -820,10 +820,8 @@ static int tca_action_flush(struct net *net, struct nlattr *nla,
goto out_module_put;
err = a.ops->walk(skb, &dcb, RTM_DELACTION, &a);
if (err < 0)
if (err <= 0)
goto out_module_put;
if (err == 0)
goto noflush_out;
nla_nest_end(skb, nest);
@@ -840,7 +838,6 @@ static int tca_action_flush(struct net *net, struct nlattr *nla,
out_module_put:
module_put(a.ops->owner);
err_out:
noflush_out:
kfree_skb(skb);
return err;
}