]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix missing spin_lock_init in visconti_eth_dwmac_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 23 Feb 2021 10:48:03 +0000 (10:48 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Feb 2021 00:11:28 +0000 (16:11 -0800)
commitc00ab5a4a2b5d8527e486970ab4bf8353921773f
treeb48e264536edda20c75b6c08cca9015e0f518527
parent89493ac6383bde4c2295b646e956b92d9436ecc4
net: stmmac: Fix missing spin_lock_init in visconti_eth_dwmac_probe()

The driver allocates the spinlock but not initialize it.
Use spin_lock_init() on it to initialize it correctly.

Fixes: 15eab184ffef ("net: stmmac: Add Toshiba Visconti SoCs glue driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Link: https://lore.kernel.org/r/20210223104803.4047281-1-weiyongjun1@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c