Re: [PATCH] Variable "val" in function rt274_i2c_probe() could be uninitialized
From: Mark Brown
Date: Fri Jan 04 2019 - 08:50:01 EST
On Thu, Jan 03, 2019 at 01:59:12PM -0800, Yizhuo wrote:
> Inside function rt274_i2c_probe(), if regmap_read() function
> returns -EINVAL, then local variable "val" leaves uninitialized
> but used in if statement. This is potentially unsafe.
Please use subject lines matching the style for the subsystem. This
makes it easier for people to identify relevant patches.
Description: PGP signature