Pablo Neira Ayuso 8691a9a338 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 <dan.carpenter@oracle.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2013-11-18 12:53:41 +01:00
..
2013-10-24 23:34:54 -04:00
2013-10-18 13:56:07 -04:00
2013-10-14 11:29:31 +02:00
2013-09-23 16:52:45 -04:00
2013-09-03 22:34:47 -04:00
2013-10-19 19:36:19 -04:00
2013-10-29 17:35:17 -04:00
2013-11-07 19:28:58 -05:00