Re: [PATCH] net: stmmac: Variable "val" in function sun8i_dwmac_set_syscon() could be uninitialized

From: David Miller
Date: Sat Feb 09 2019 - 02:01:22 EST


From: Yizhuo <yzhai003@xxxxxxx>
Date: Thu, 7 Feb 2019 09:46:23 -0800

> In function sun8i_dwmac_set_syscon(), local variable "val" could
> be uninitialized if function regmap_read() returns -EINVAL.
> However, it will be used directly in the if statement, which
> is potentially unsafe.
>
> Signed-off-by: Yizhuo <yzhai003@xxxxxxx>

This doesn't apply to any of my trees.