[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191118232912.GC15395@lunn.ch>
Date: Tue, 19 Nov 2019 00:29:12 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Colin King <colin.king@...onical.com>
Cc: Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>,
"David S . Miller" <davem@...emloft.net>,
Dan Murphy <dmurphy@...com>, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] net: phy: dp83869: fix return of uninitialized
variable ret
On Mon, Nov 18, 2019 at 11:48:35AM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> In the case where the call to phy_interface_is_rgmii returns zero
> the variable ret is left uninitialized and this is returned at
> the end of the function dp83869_configure_rgmii. Fix this by
> returning 0 instead of the uninitialized value in ret.
>
> Addresses-Coverity: ("Uninitialized scalar variable")
> Fixes: 01db923e8377 ("net: phy: dp83869: Add TI dp83869 phy")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Dan: phy_modify_mmd() could fail. You check the return value for
phy_read and phy_write, so it would be consistent to also check
Andrew
Powered by blists - more mailing lists