Re: [PATCH] drivers/regulator: fix a missing check of return value

From: Mark Brown
Date: Wed Dec 19 2018 - 07:27:38 EST


On Tue, Dec 18, 2018 at 11:04:13PM -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".

Please use subject lines matching the style for the subsystem. This
makes it easier for people to identify relevant patches.

Attachment: signature.asc
Description: PGP signature