All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH PKT_SCHED 2/4]: cls_api.c: fix module reference leak on module load
@ 2005-01-19  4:38 Patrick McHardy
  0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2005-01-19  4:38 UTC (permalink / raw)
  To: David S. Miller; +Cc: Maillist netdev

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 02.diff --]
[-- Type: text/x-patch, Size: 857 bytes --]

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/01/19 03:58:05+01:00 kaber@coreworks.de 
#   [PKT_SCHED]: cls_api.c: fix module reference leak on module load
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
# net/sched/cls_api.c
#   2005/01/19 03:57:58+01:00 kaber@coreworks.de +3 -1
#   [PKT_SCHED]: cls_api.c: fix module reference leak on module load
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
diff -Nru a/net/sched/cls_api.c b/net/sched/cls_api.c
--- a/net/sched/cls_api.c	2005-01-19 05:29:50 +01:00
+++ b/net/sched/cls_api.c	2005-01-19 05:29:50 +01:00
@@ -239,8 +239,10 @@
 				 * 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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-19  4:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-19  4:38 [PATCH PKT_SCHED 2/4]: cls_api.c: fix module reference leak on module load Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.