Skip to content

Commit ebbaeab

Browse files
tgrafdavem330
authored andcommitted
[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>
1 parent 26e0fd1 commit ebbaeab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/sched/act_api.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,8 +602,8 @@ static int tca_action_flush(struct rtattr *rta, struct nlmsghdr *n, u32 pid)
602602
return err;
603603

604604
rtattr_failure:
605-
module_put(a->ops->owner);
606605
nlmsg_failure:
606+
module_put(a->ops->owner);
607607
err_out:
608608
kfree_skb(skb);
609609
kfree(a);

0 commit comments

Comments
 (0)