diff --git a/net/sched/cls_route.c b/net/sched/cls_route.c index a4ce39b19be0aaf2569def5342c000abd86d2e3d..455fc8f83d0ae0ab48ba97fc2a11ce99e8e00784 100644 --- a/net/sched/cls_route.c +++ b/net/sched/cls_route.c @@ -559,7 +559,8 @@ static int route4_change(struct net *net, struct sk_buff *in_skb, return 0; errout: - tcf_exts_destroy(&f->exts); + if (f) + tcf_exts_destroy(&f->exts); kfree(f); return err; }