Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6d834e04e596d6803cf1074a07fd67e7b5662f1b
Commit:     6d834e04e596d6803cf1074a07fd67e7b5662f1b
Parent:     b03f4672007e533c8dbf0965f995182586216bf1
Author:     Patrick McHardy <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 23 20:32:42 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:11:15 2008 -0800

    [NET_SCHED]: act_api: fix netlink API conversion bug
    
    Fix two invalid attribute accesses, indices start at 1 with the new
    netlink API.
    
    Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/sched/act_api.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index ebd21d2..ae077ed 100644
--- a/net/sched/act_api.c
+++ b/net/sched/act_api.c
@@ -997,11 +997,11 @@ find_dump_kind(struct nlmsghdr *n)
        if (nla_parse(tb, TCA_ACT_MAX_PRIO, nla_data(tb1),
                      NLMSG_ALIGN(nla_len(tb1)), NULL) < 0)
                return NULL;
-       if (tb[0] == NULL)
-               return NULL;
 
-       if (nla_parse(tb2, TCA_ACT_MAX, nla_data(tb[0]),
-                     nla_len(tb[0]), NULL) < 0)
+       if (tb[1] == NULL)
+               return NULL;
+       if (nla_parse(tb2, TCA_ACT_MAX, nla_data(tb[1]),
+                     nla_len(tb[1]), NULL) < 0)
                return NULL;
        kind = tb2[TCA_ACT_KIND];
 
-
To unsubscribe from this list: send the line "unsubscribe git-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