ChangeSet 1.2181.54.1, 2005/04/01 14:05:21+02:00, [EMAIL PROTECTED]

        [PKT_SCHED]: Properly return when no backward compatibility action 
statistics are to be dumped
        
        Fixes a stupid bug introcuded in my "Fix action statistics dumping in
        compatibility mode" patch, no clue why it actually worked without this 
fix.
        
        Signed-off-by: Thomas Graf <[EMAIL PROTECTED]>
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



 act_api.c |    2 ++
 1 files changed, 2 insertions(+)


diff -Nru a/net/sched/act_api.c b/net/sched/act_api.c
--- a/net/sched/act_api.c       2005-04-04 08:11:27 -07:00
+++ b/net/sched/act_api.c       2005-04-04 08:11:27 -07:00
@@ -397,6 +397,8 @@
                if (a->type == TCA_OLD_COMPAT)
                        err = gnet_stats_start_copy_compat(skb, 0,
                                TCA_STATS, TCA_XSTATS, h->stats_lock, &d);
+               else
+                       return 0;
        } else
                err = gnet_stats_start_copy(skb, TCA_ACT_STATS,
                        h->stats_lock, &d);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to