[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181219175153.GK8130@sirena.org.uk>
Date: Wed, 19 Dec 2018 17:51:53 +0000
From: Mark Brown <broonie@...nel.org>
To: Kangjie Lu <kjlu@....edu>
Cc: pakki001@....edu, Tony Lindgren <tony@...mide.com>,
Liam Girdwood <lgirdwood@...il.com>,
linux-omap@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] regulator: palmas: fix a missing check of return value
On Wed, Dec 19, 2018 at 11:11:39AM -0600, Kangjie Lu wrote:
> If palmas_smps_read() fails, we should not use the read data in "reg"
> which may contain random value. The fix inserts a check for the return
> value of palmas_smps_read(): If it fails, we return the error code
> upstream and stop using "reg".
Ah, thanks - I'd actually already applied the earlier version!
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists