netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PKT_SCHED]: act_api: Fix module leak while flushing actions
@ 2006-07-09 14:20 Thomas Graf
  2006-07-09 18:38 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Graf @ 2006-07-09 14:20 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

Module reference needs to be given back if message header
construction fails.

Signed-off-by: Thomas Graf <tgraf@suug.ch>

Index: net-2.6.git/net/sched/act_api.c
===================================================================
--- net-2.6.git.orig/net/sched/act_api.c
+++ net-2.6.git/net/sched/act_api.c
@@ -602,8 +602,8 @@ static int tca_action_flush(struct rtatt
 	return err;
 
 rtattr_failure:
-	module_put(a->ops->owner);
 nlmsg_failure:
+	module_put(a->ops->owner);
 err_out:
 	kfree_skb(skb);
 	kfree(a);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-10  1:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-09 14:20 [PKT_SCHED]: act_api: Fix module leak while flushing actions Thomas Graf
2006-07-09 18:38 ` David Miller
2006-07-09 19:57   ` Thomas Graf
2006-07-10  1:18     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).