]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-visconti: No change to ETHER_CLOCK_SEL for unexpected speed request.
authorYuji Ishikawa <yuji2.ishikawa@toshiba.co.jp>
Thu, 27 Jan 2022 12:17:14 +0000 (21:17 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jan 2022 14:28:30 +0000 (14:28 +0000)
commitc3f2b245815bb4f8a596e49525487d0a9ef1982a
treeeeb4925387633fb053b7739fd75c75818ca24b04
parent9a7d5153e19529ae7429e490cdcc61e4ae33b54d
net: stmmac: dwmac-visconti: No change to ETHER_CLOCK_SEL for unexpected speed request.

Variable clk_sel_val is not initialized in the default case of the first switch statement.
In that case, the function should return immediately without any changes to the hardware.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 9c71eb3afad5 ("net: stmmac: Add Toshiba Visconti SoCs glue driver")
Signed-off-by: Yuji Ishikawa <yuji2.ishikawa@toshiba.co.jp>
Reviewed-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c