Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd42b788 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

net: sched: cls_basic: fix error path in basic_change()

parent 0f6538c2
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -178,10 +178,9 @@ static int basic_change(struct net *net, struct sk_buff *in_skb,
			return -EINVAL;
	}

	err = -ENOBUFS;
	fnew = kzalloc(sizeof(*fnew), GFP_KERNEL);
	if (fnew == NULL)
		goto errout;
	if (!fnew)
		return -ENOBUFS;

	tcf_exts_init(&fnew->exts, TCA_BASIC_ACT, TCA_BASIC_POLICE);
	err = -EINVAL;