Skip to content
Commit 17d7fd47 authored by Wei Yongjun's avatar Wei Yongjun Committed by Jakub Kicinski
Browse files

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: b38dd98f ("net: stmmac: Add Toshiba Visconti SoCs glue driver")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarNobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Link: https://lore.kernel.org/r/20210223104803.4047281-1-weiyongjun1@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4e096a18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment