All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH PKT_SCHED 9/17]: Return -EOPNOTSUPP if gact probability is requested but not compiled in
@ 2004-12-30  3:40 Patrick McHardy
  0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2004-12-30  3:40 UTC (permalink / raw)
  To: jamal; +Cc: Maillist netdev

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

Return -EOPNOTSUPP if gact probability is requested but not compiled in.


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

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/12/30 02:34:11+01:00 kaber@coreworks.de 
#   [PKT_SCHED]: Return -EOPNOTSUPP if gact probability is requested but not compiled in
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
# net/sched/gact.c
#   2004/12/30 02:34:04+01:00 kaber@coreworks.de +3 -1
#   [PKT_SCHED]: Return -EOPNOTSUPP if gact probability is requested but not compiled in
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
diff -Nru a/net/sched/gact.c b/net/sched/gact.c
--- a/net/sched/gact.c	2004-12-30 04:01:33 +01:00
+++ b/net/sched/gact.c	2004-12-30 04:01:33 +01:00
@@ -88,9 +88,11 @@
 		return -EINVAL;
 
 	parm = RTA_DATA(tb[TCA_GACT_PARMS - 1]);
-#ifdef CONFIG_GACT_PROB
 	if (tb[TCA_GACT_PROB - 1] != NULL)
+#ifdef CONFIG_GACT_PROB
 		p_parm = RTA_DATA(tb[TCA_GACT_PROB - 1]);
+#else
+		return -EOPNOTSUPP;
 #endif
 	p = tcf_hash_check(parm, a, ovr, bind);
 	if (p == NULL) {

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

only message in thread, other threads:[~2004-12-30  3:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-30  3:40 [PATCH PKT_SCHED 9/17]: Return -EOPNOTSUPP if gact probability is requested but not compiled in 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.