]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/netfilter/xt_dscp.c
netfilter: xtables: slightly better error reporting
[mirror_ubuntu-artful-kernel.git] / net / netfilter / xt_dscp.c
index f355fb9e06fade7b8d5a48680bae8ed445caccc1..9db51fddbdb82fc24080eb2591375eadbd94c0be 100644 (file)
@@ -48,7 +48,7 @@ static int dscp_mt_check(const struct xt_mtchk_param *par)
 
        if (info->dscp > XT_DSCP_MAX) {
                pr_info("dscp %x out of range\n", info->dscp);
-               return -EINVAL;
+               return -EDOM;
        }
 
        return 0;