From: Pablo Neira Ayuso Date: Sat, 16 Nov 2013 21:16:47 +0000 (+0100) Subject: netfilter: nft_compat: fix error path in nft_parse_compat() X-Git-Tag: v3.13-rc1~7^2~7^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8691a9a3382f17fbf1ed808c956672c70369a2e0;p=pandora-kernel.git netfilter: nft_compat: fix error path in nft_parse_compat() The patch 0ca743a55991: "netfilter: nf_tables: add compatibility layer for x_tables", leads to the following Smatch warning: "net/netfilter/nft_compat.c:140 nft_parse_compat() warn: signedness bug returning '(-34)'" This nft_parse_compat function returns error codes but the return type is u8 so the error codes are transformed into small positive values. The callers don't check the return. Reported-by: Dan Carpenter Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed