Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.26-rc5 /net/sched/sch_gred.c

Filename:/net/sched/sch_gred.c
Lines Added:2
Lines Deleted:1
Also changed in: (Previous) 2.6.25  2.6.25-rc9  2.6.25-rc8  2.6.25-rc7  2.6.25-rc6  2.6.25-rc5 
(Following) 2.6.26-rc6  2.6.26-rc7  2.6.26-rc8  2.6.26-rc9  2.6.26  2.6.26-git7 

Location
[  2.6.26-rc5
  [  net
    [  sched
       o  sch_gred.c

Patch

diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c
index 3a9d226..c89fba5 100644
--- a/net/sched/sch_gred.c
+++ b/net/sched/sch_gred.c
@@ -582,7 +582,8 @@ append_opt:
    return nla_nest_end(skb, opts);
 
 nla_put_failure:
-   return nla_nest_cancel(skb, opts);
+   nla_nest_cancel(skb, opts);
+   return -EMSGSIZE;
 }
 
 static void gred_destroy(struct Qdisc *sch)


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.