summaryrefslogtreecommitdiffstats
path: root/samples/Kconfig
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2016-10-25 21:56:39 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-10-27 18:29:01 +0200
commitf1d505bb762e30bf316ff5d3b604914649d6aed3 (patch)
tree5f2a9995bd38340d44dacda796752a93f9c39e06 /samples/Kconfig
parentnetfilter: nf_conntrack_sip: extend request line validation (diff)
downloadlinux-f1d505bb762e30bf316ff5d3b604914649d6aed3.tar.xz
linux-f1d505bb762e30bf316ff5d3b604914649d6aed3.zip
netfilter: nf_tables: fix type mismatch with error return from nft_parse_u32_check
Commit 36b701fae12ac ("netfilter: nf_tables: validate maximum value of u32 netlink attributes") introduced nft_parse_u32_check with a return value of "unsigned int", yet on error it returns "-ERANGE". This patch corrects the mismatch by changing the return value to "int", which happens to match the actual users of nft_parse_u32_check already. Found by Coverity, CID 1373930. Note that commit 21a9e0f1568ea ("netfilter: nft_exthdr: fix error handling in nft_exthdr_init()) attempted to address the issue, but did not address the return type of nft_parse_u32_check. Signed-off-by: John W. Linville <linville@tuxdriver.com> Cc: Laura Garcia Liebana <nevola@gmail.com> Cc: Pablo Neira Ayuso <pablo@netfilter.org> Cc: Dan Carpenter <dan.carpenter@oracle.com> Fixes: 36b701fae12ac ("netfilter: nf_tables: validate maximum value...") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'samples/Kconfig')
0 files changed, 0 insertions, 0 deletions