Re: [PATCH][next] regmap: fix return of unintialized value in variable ret

From: Mark Brown
Date: Fri Sep 18 2020 - 09:15:27 EST


On Fri, Sep 18, 2020 at 02:11:58PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> A recent commit removed the intialization of ret and now the !config
> error return path returns a bogus uninitialized value in ret. Fix
> this by explicitly setting ret to -EINVAL for this error exit path.

I already applied a patch for this.

Attachment: signature.asc
Description: PGP signature