Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1494218

Re: [PATCH 1/3] netfilter: nf_tables: avoid uninitialized variable warning

From Pablo Neira Ayuso <pablo@netfilter.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/3] netfilter: nf_tables: avoid uninitialized variable warning
Date 2016-09-30 19:50 +0200
Message-ID <sna6B-50L-9@gated-at.bofh.it> (permalink)
References <sn8xP-3Yq-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Sep 30, 2016 at 06:05:34PM +0200, Arnd Bergmann wrote:
> The newly added nft_range_eval() function handles the two possible
> nft range operations, but as the compiler warning points out,
> any unexpected value would lead to the 'mismatch' variable being
> used without being initialized:
> 
> net/netfilter/nft_range.c: In function 'nft_range_eval':
> net/netfilter/nft_range.c:45:5: error: 'mismatch' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> 
> This can be trivially avoided by added a 'default:' clause.

Applied this patch, I took Aaron's and Pai's patches instead.

Thanks anyway for following up on this issue Arnd.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] netfilter: nf_tables: avoid uninitialized variable warning Arnd Bergmann <arnd@arndb.de> - 2016-09-30 18:10 +0200
  [PATCH 3/3] netfilter: xt_hashlimit: uses div_u64 for division Arnd Bergmann <arnd@arndb.de> - 2016-09-30 18:10 +0200
    Re: [PATCH 3/3] netfilter: xt_hashlimit: uses div_u64 for division Eric Dumazet <eric.dumazet@gmail.com> - 2016-09-30 18:40 +0200
      Re: [PATCH 3/3] netfilter: xt_hashlimit: uses div_u64 for division Vishwanath Pai <vpai@akamai.com> - 2016-09-30 19:30 +0200
      Re: [PATCH 3/3] netfilter: xt_hashlimit: uses div_u64 for division Arnd Bergmann <arnd@arndb.de> - 2016-09-30 19:50 +0200
  Re: [PATCH 1/3] netfilter: nf_tables: avoid uninitialized variable  warning Pablo Neira Ayuso <pablo@netfilter.org> - 2016-09-30 19:50 +0200
    Re: [PATCH 1/3] netfilter: nf_tables: avoid uninitialized variable  warning Pablo Neira Ayuso <pablo@netfilter.org> - 2016-09-30 20:50 +0200

csiph-web