[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>
This commit is contained in:
committed by
David S. Miller
parent
26e0fd1ce2
commit
ebbaeab18b
@@ -602,8 +602,8 @@ static int tca_action_flush(struct rtattr *rta, struct nlmsghdr *n, u32 pid)
|
|||||||
return err;
|
return err;
|
||||||
|
|
||||||
rtattr_failure:
|
rtattr_failure:
|
||||||
module_put(a->ops->owner);
|
|
||||||
nlmsg_failure:
|
nlmsg_failure:
|
||||||
|
module_put(a->ops->owner);
|
||||||
err_out:
|
err_out:
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
kfree(a);
|
kfree(a);
|
||||||
|
Reference in New Issue
Block a user