All of lore.kernel.org
 help / color / mirror / Atom feed
* [net-next:master 136/385] net/sched/cls_route.c:565:22-26: ERROR: f is NULL but dereferenced.
@ 2016-09-18 14:57 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-09-18 14:57 UTC (permalink / raw)
  To: WANG Cong; +Cc: kbuild-all, netdev

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 >>)

>> 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-18 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-18 14:57 [net-next:master 136/385] net/sched/cls_route.c:565:22-26: ERROR: f is NULL but dereferenced kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.