From aa459cd3ef50097e5f6f3b659a0b28f740fd5c1c Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Tue, 7 Nov 2006 15:34:27 +0100 Subject: [PATCH] [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 Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- net/sched/act_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/act_api.c b/net/sched/act_api.c index eb7dc2947a0a..a9fab455df08 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -603,8 +603,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);