Commit 21641c2e authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

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

 ("net_sched: properly handle failure case of tcf_exts_init()")
Reported-by: default avatarkbuild test robot <>
Cc: Jamal Hadi Salim <>
Signed-off-by: default avatarCong Wang <>
Acked-by: default avatarJamal Hadi Salim <>
Signed-off-by: default avatarDavid S. Miller <>
parent d6989d4b
......@@ -559,7 +559,8 @@ static int route4_change(struct net *net, struct sk_buff *in_skb,
return 0;
if (f)
return err;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment