projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: macb: NULL out phydev after removing mdio bus
[cascardo/linux.git]
/
net
/
netfilter
/
nft_cmp.c
diff --git
a/net/netfilter/nft_cmp.c
b/net/netfilter/nft_cmp.c
index
e25b35d
..
2e53739
100644
(file)
--- a/
net/netfilter/nft_cmp.c
+++ b/
net/netfilter/nft_cmp.c
@@
-84,6
+84,9
@@
static int nft_cmp_init(const struct nft_ctx *ctx, const struct nft_expr *expr,
if (err < 0)
return err;
+ if (desc.len > U8_MAX)
+ return -ERANGE;
+
priv->op = ntohl(nla_get_be32(tb[NFTA_CMP_OP]));
priv->len = desc.len;
return 0;