netfilter: nf_tables: nft_parse_register can return a negative value
authorAntoine Tenart <atenart@kernel.org>
Tue, 12 Apr 2022 08:14:59 +0000 (10:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 12 Apr 2022 09:36:37 +0000 (11:36 +0200)
commit6c6f9f31ecd47dce1d0dafca4bec8805f9bc97cd
tree0d74dcbb3450376fd4b7831a296c643578625c7e
parent05ae2fba821c4d122ab4ba3e52144e21586c4010
netfilter: nf_tables: nft_parse_register can return a negative value

Since commit 6e1acfa387b9 ("netfilter: nf_tables: validate registers
coming from userspace.") nft_parse_register can return a negative value,
but the function prototype is still returning an unsigned int.

Fixes: 6e1acfa387b9 ("netfilter: nf_tables: validate registers coming from userspace.")
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c