Showing error 762

User: Jiri Slaby
Error type: Invalid Pointer Dereference
Error type description: A pointer which is invalid is being dereferenced
File location: net/sched/cls_route.c
Line in file: 526
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2011-11-07 22:22:22 UTC


Source:

496                                if (*fp == f) {
497                                        *fp = f->next;
498                                        break;
499                                }
500                        }
501                }
502        }
503        tcf_tree_unlock(tp);
504
505        route4_reset_fastmap(tp->q, head, f->id);
506        *arg = (unsigned long)f;
507        return 0;
508
509errout:
510        kfree(f);
511        return err;
512}
513
514static void route4_walk(struct tcf_proto *tp, struct tcf_walker *arg)
515{
516        struct route4_head *head = tp->root;
517        unsigned h, h1;
518
519        if (head == NULL)
520                arg->stop = 1;
521
522        if (arg->stop)
523                return;
524
525        for (h = 0; h <= 256; h++) {
526                struct route4_bucket *b = head->table[h];
527
528                if (b) {
529                        for (h1 = 0; h1 <= 32; h1++) {
530                                struct route4_filter *f;
531
532                                for (f = b->ht[h1]; f; f = f->next) {
533                                        if (arg->count < arg->skip) {
534                                                arg->count++;
535                                                continue;
536                                        }
Show full sources