Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebbaeab1 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

[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: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 26e0fd1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);