forked from Minki/linux
[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:
parent
26e0fd1ce2
commit
ebbaeab18b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user