]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Fix missing spin_lock_init() in otx2_tc_add_flow()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 19 Mar 2021 09:41:03 +0000 (09:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2021 19:09:22 +0000 (12:09 -0700)
commit59f347f820fb0b38e6fed83cdfc48f7c2fb7d6aa
treed11792bb65207ee8912bade7a6a03a962eaa8677
parent8abbdd8bf7c25a811c219b2e5ceb9e5b9dc129fe
octeontx2-pf: Fix missing spin_lock_init() in otx2_tc_add_flow()

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

Fixes: 816b5e0a64e8 ("octeontx2-pf: add tc flower stats handler for hw offloads")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c