From: Thomas Graf Date: Sun, 9 Jul 2006 18:36:23 +0000 (-0700) Subject: [PKT_SCHED]: act_api: Fix module leak while flushing actions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebbaeab18b1c520054ea70e512ac0db7456ede01;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 --- diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 599423cc9d0..0972247a839 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);