]> git.baikalelectronics.ru Git - kernel.git/commit
wwan: mhi: Fix missing spin_lock_init() in mhi_mbim_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Sun, 8 Aug 2021 06:33:44 +0000 (06:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Aug 2021 09:18:08 +0000 (10:18 +0100)
commitef8812e1eae0703de7e0d7706bd4e040182e9ae4
tree2533c8d71bbfd6bd27d72573b32a475ba625eb49
parent5963415ee6f3c8d9b7549dc1cc734f8cad84db6a
wwan: mhi: Fix missing spin_lock_init() in mhi_mbim_probe()

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

Fixes: 1565afe1f014 ("net: wwan: Add MHI MBIM network driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/mhi_wwan_mbim.c