]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized
authorYizhuo <yzhai003@ucr.edu>
Sat, 26 Jan 2019 06:32:20 +0000 (22:32 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 29 Jan 2019 16:54:22 +0000 (08:54 -0800)
commitdf70d993dd5de7afd55e23ddcf5ac2d0b0d55189
tree7017561cfc2c451e3a22631e3d6c98e16af5f3ae
parent27f413b3527db210c5508cf281e333ba0c8dfd3f
ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized

In function omap4_dsi_mux_pads(), local variable "reg" could
be uninitialized if function regmap_read() returns -EINVAL.
However, it will be used directly in the later context, which
is potentially unsafe.

Signed-off-by: Yizhuo <yzhai003@ucr.edu>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/display.c