]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/sched/cls_route.c
net_sched: properly handle failure case of tcf_exts_init()
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 19 Aug 2016 19:36:54 +0000 (12:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Aug 2016 00:02:31 +0000 (17:02 -0700)
commitb9a24bb76bf611a5268ceffe04219e6ad264559b
tree78aefca9f8e4da33abea28a0ff61fbc59fd2c66d
parentc1346a7e70b5be7f01cc1f64a7e3aefb80d48ad7
net_sched: properly handle failure case of tcf_exts_init()

After commit 22dc13c837c3 ("net_sched: convert tcf_exts from list to pointer array")
we do dynamic allocation in tcf_exts_init(), therefore we need
to handle the ENOMEM case properly.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
net/sched/cls_basic.c
net/sched/cls_bpf.c
net/sched/cls_cgroup.c
net/sched/cls_flow.c
net/sched/cls_flower.c
net/sched/cls_fw.c
net/sched/cls_route.c
net/sched/cls_rsvp.h
net/sched/cls_tcindex.c
net/sched/cls_u32.c