projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26e0fd1
)
[PKT_SCHED]: act_api: Fix module leak while flushing actions
author
Thomas Graf
<tgraf@suug.ch>
Sun, 9 Jul 2006 18:36:23 +0000
(11:36 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 9 Jul 2006 18:36:23 +0000
(11:36 -0700)
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>
net/sched/act_api.c
patch
|
blob
|
history
diff --git
a/net/sched/act_api.c
b/net/sched/act_api.c
index
599423c
..
0972247
100644
(file)
--- a/
net/sched/act_api.c
+++ b/
net/sched/act_api.c
@@
-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);