[net-next:master 136/385] net/sched/cls_route.c:565:22-26: ERROR: f is NULL but dereferenced.

From: kbuild test robot <hidden>
Date: 2016-09-18 14:57:52

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   fd9527f404d51e50f40dac0d9a69f2eff3dac33e
commit: b9a24bb76bf611a5268ceffe04219e6ad264559b [136/385] net_sched: properly handle failure case of tcf_exts_init()


coccinelle warnings: (new ones prefixed by >>)
quoted
net/sched/cls_route.c:565:22-26: ERROR: f is NULL but dereferenced.
vim +565 net/sched/cls_route.c

   549						*fp = f->next;
   550						break;
   551					}
   552				}
   553			}
   554		}
   555	
   556		route4_reset_fastmap(head);
   557		*arg = (unsigned long)f;
   558		if (fold) {
   559			tcf_unbind_filter(tp, &fold->res);
   560			call_rcu(&fold->rcu, route4_delete_filter);
   561		}
   562		return 0;
   563	
   564	errout:
 > 565		tcf_exts_destroy(&f->exts);
   566		kfree(f);
   567		return err;
   568	}
   569	
   570	static void route4_walk(struct tcf_proto *tp, struct tcf_walker *arg)
   571	{
   572		struct route4_head *head = rtnl_dereference(tp->root);
   573		unsigned int h, h1;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help