Messages in this thread | | | Date | Fri, 4 Jan 2019 13:49:37 +0000 | From | Mark Brown <> | Subject | Re: [PATCH] Variable "val" in function rt274_i2c_probe() could be uninitialized |
| |
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. [unhandled content-type:application/pgp-signature] | |