Commit 407f96b4 authored by Patrick McHardy's avatar Patrick McHardy

[PKT_SCHED]: cls_api.c: fix module reference leak on module load

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent fb2eef41
......@@ -239,8 +239,10 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
* replay the request. We indicate this using
* -EAGAIN.
*/
if (tp_ops != NULL)
if (tp_ops != NULL) {
module_put(tp_ops->owner);
err = -EAGAIN;
}
}
#endif
kfree(tp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment