[alsa-devel] [PATCH] Variable "val" in function rt274_i2c_probe() could be uninitialized

Mark Brown broonie at kernel.org
Fri Jan 4 14:49:37 CET 2019


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190104/1e1eac7a/attachment.sig>


More information about the Alsa-devel mailing list