]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: check NULL on error path in route4_change()
authorWANG Cong <xiyou.wangcong@gmail.com>
Sun, 18 Sep 2016 22:52:20 +0000 (15:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2016 10:51:49 +0000 (06:51 -0400)
commit6e1298b37b99adc00c7e437b8b15f36eaa4a2965
tree7d85de3b3d90be1949715ff6f542dc3888041022
parent648ae06d0d2f8d86cd1d14072999b7c8abe2ee65
net_sched: check NULL on error path in route4_change()

On error path in route4_change(), 'f' could be NULL,
so we should check NULL before calling tcf_exts_destroy().

Fixes: 224fdce15787 ("net_sched: properly handle failure case of tcf_exts_init()")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_route.c