Skip to content
Snippets Groups Projects
Unverified Commit 8c3590de authored by Yizhuo's avatar Yizhuo Committed by Mark Brown
Browse files

ASoC: Variable "val" in function rt274_i2c_probe() could be uninitialized


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.

Signed-off-by: default avatarYizhuo <yzhai003@ucr.edu>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 22c7d5e7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment