]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sched/act_pedit.c
net/act_pedit: fix an error code
[karo-tx-linux.git] / net / sched / act_pedit.c
index 164b5ac094be6d8bbd7a04aa8aa962a3c693ab44..7dc5892671c818db55b024b10d56ec2252c2f826 100644 (file)
@@ -94,8 +94,10 @@ static struct tcf_pedit_key_ex *tcf_pedit_keys_ex_parse(struct nlattr *nla,
                k++;
        }
 
-       if (n)
+       if (n) {
+               err = -EINVAL;
                goto err_out;
+       }
 
        return keys_ex;