Re: [PATCH v2 1/4] gpio: pca953x: avoid to use uninitialized value pinctrl

From: Andy Shevchenko
Date: Fri Dec 30 2022 - 07:04:51 EST


On Sun, Dec 11, 2022 at 12:05:58AM +0200, Andy Shevchenko wrote:
> From: Haibo Chen <haibo.chen@xxxxxxx>
>
> There is a variable pinctrl declared without initializer. And then
> has the case (switch operation chose the default case) to directly
> use this uninitialized value, this is not a safe behavior. So here
> initialize the pinctrl as 0 to avoid this issue.
> This is reported by Coverity.

Bart, any comments on the series?

--
With Best Regards,
Andy Shevchenko