[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211230121226.GC21386@breakpoint.cc>
Date: Thu, 30 Dec 2021 13:12:26 +0100
From: Florian Westphal <fw@...len.de>
To: cgel.zte@...il.com
Cc: Pablo Neira Ayuso <pablo@...filter.org>,
Jozsef Kadlecsik <kadlec@...filter.org>,
Florian Westphal <fw@...len.de>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
David Ahern <dsahern@...nel.org>,
Jakub Kicinski <kuba@...nel.org>,
netfilter-devel@...r.kernel.org, linux-kernel@...r.kernel.org,
luo penghao <luo.penghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH linux] netfilter: Remove unnecessary ret assignment
cgel.zte@...il.com <cgel.zte@...il.com> wrote:
> From: luo penghao <luo.penghao@....com.cn>
>
> Regardless of whether the subsequent (copy_to_user(user, &info, *len) != 0)
> holds, the value of ret will be assigned a new value.
>
> The clang_analyzer complains as follows:
>
> net/ipv6/netfilter/ip6_tables.c:
>
> Value stored to 'ret' is never read
Please fix this properly:
1. consider adding error unwinding instead.
2. net/ipv4/netfilter/ip_tables.c has same construct
Powered by blists - more mailing lists