[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241216160703.GE780307@kernel.org>
Date: Mon, 16 Dec 2024 16:07:03 +0000
From: Simon Horman <horms@...nel.org>
To: Gianfranco Trad <gianf.trad@...il.com>
Cc: manishc@...vell.com, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
skhan@...uxfoundation.org
Subject: Re: [PATCH v2] qed: fix possible uninit pointer read in
qed_mcp_nvm_info_populate()
On Sun, Dec 15, 2024 at 02:17:34AM +0100, Gianfranco Trad wrote:
> Coverity reports an uninit pointer read in qed_mcp_nvm_info_populate().
> If EOPNOTSUPP is returned from qed_mcp_bist_nvm_get_num_images() ensure
> nvm_info.num_images is set to 0 to avoid possible uninit assignment
> to p_hwfn->nvm_info.image_att later on in out label.
>
> Closes: https://scan5.scan.coverity.com/#/project-view/63204/10063?selectedIssue=1636666
> Suggested-by: Simon Horman <horms@...nel.org>
> Signed-off-by: Gianfranco Trad <gianf.trad@...il.com>
> ---
> Notes:
> - Changes in v2: set nvm_info.num_images to 0 before goto out.
> - Link to v1: https://lore.kernel.org/all/20241211134041.65860-2-gianf.trad@gmail.com/
Thanks for the update.
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists