net_sched: cls_api: fix return value for non-existant classifiers

cls_api should return ENOENT when the requested classifier doesn't
exist.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Patrick McHardy and committed by
David S. Miller
f2df8249 1ac06e03

+1 -1
+1 -1
net/sched/cls_api.c
··· 220 220 tp = kzalloc(sizeof(*tp), GFP_KERNEL); 221 221 if (tp == NULL) 222 222 goto errout; 223 - err = -EINVAL; 223 + err = -ENOENT; 224 224 tp_ops = tcf_proto_lookup_ops(tca[TCA_KIND]); 225 225 if (tp_ops == NULL) { 226 226 #ifdef CONFIG_KMOD