Re: [PATCH] phy: Variable "caldone" in function rockchip_emmc_phy_power() could be uninitialized

2019-02-12 Thread Heiko Stübner
Am Mittwoch, 6. Februar 2019, 02:47:33 CET schrieb Yizhuo: > In function rockchip_emmc_phy_power(), local variable "caldone" > could be uninitialized if function regmap_read() returns -EINVAL. > However, it will be used directly in the later context, which > is potentially unsafe. > >

[PATCH] phy: Variable "caldone" in function rockchip_emmc_phy_power() could be uninitialized

2019-02-05 Thread Yizhuo
In function rockchip_emmc_phy_power(), local variable "caldone" 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 --- drivers/phy/rockchip/phy-rockchip-emmc.c | 10