mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
net sched actions: decrement module reference count after table flush.
am: c10ffe988f
Change-Id: Ie90a3e257c06baeb2c1e8b190da986990a5c2e7c
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user