[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZoP8seqQxMFb-kS2@matsya>
Date: Tue, 2 Jul 2024 18:42:17 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Markus Elfring <Markus.Elfring@....de>
Cc: Ma Ke <make24@...as.ac.cn>, linux-phy@...ts.infradead.org,
kernel-janitors@...r.kernel.org,
Kishon Vijay Abraham I <kishon@...nel.org>,
Rob Herring <robh@...nel.org>, Roger Quadros <rogerq@...nel.org>,
Sergio Paracuellos <sergio.paracuellos@...il.com>,
Swapnil Jakhade <sjakhade@...ence.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] phy: cadence-torrent: Check return value on register read
On 02-07-24, 09:43, Markus Elfring wrote:
> > cdns_torrent_dp_set_power_state() does not consider that ret might be
> > overwritten. Add return value check of regmap_read_poll_timeout() after
> > register read in cdns_torrent_dp_set_power_state().
>
> I suggest to improve such a change description another bit.
>
> 1. A return value is stored in the mentioned local variable.
>
> 2. Unfortunately, it was not immediately checked.
>
> * https://cwe.mitre.org/data/definitions/252.html
>
> * https://wiki.sei.cmu.edu/confluence/display/c/EXP12-C.+Do+not+ignore+values+returned+by+functions
>
> 3. How do you think about to avoid a repeated reference to a function name?
<form letter>
Feel free to ignore all comments from Markus, regardless whether the
suggestion is reasonable or not. This person is banned from LKML and
several maintainers ignore Markus' feedback, because it is just a waste
of time.
</form letter>
--
~Vinod
Powered by blists - more mailing lists