summaryrefslogtreecommitdiffstats
path: root/net/sched/act_api.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2006-07-09 20:36:23 +0200
committerDavid S. Miller <davem@davemloft.net>2006-07-09 20:36:23 +0200
commitebbaeab18b1c520054ea70e512ac0db7456ede01 (patch)
treeec988cfac2d90ff4467b61953dccba0f67ed9b48 /net/sched/act_api.c
parent[NET]: Fix IPv4/DECnet routing rule dumping (diff)
downloadlinux-ebbaeab18b1c520054ea70e512ac0db7456ede01.tar.xz
linux-ebbaeab18b1c520054ea70e512ac0db7456ede01.zip
[PKT_SCHED]: act_api: Fix module leak while flushing actions
Module reference needs to be given back if message header construction fails. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r--net/sched/act_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index 599423cc9d0d..0972247a839c 100644
--- a/net/sched/act_api.c
+++ b/net/sched/act_api.c
@@ -602,8 +602,8 @@ static int tca_action_flush(struct rtattr *rta, struct nlmsghdr *n, u32 pid)
return err;
rtattr_failure:
- module_put(a->ops->owner);
nlmsg_failure:
+ module_put(a->ops->owner);
err_out:
kfree_skb(skb);
kfree(a);