]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix possible deadlock
authorGanesh Goudar <ganeshgr@chelsio.com>
Thu, 25 Jan 2018 07:59:43 +0000 (13:29 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jan 2018 21:30:54 +0000 (16:30 -0500)
commit992bd8813c7f5a142e4d7a2fa83ef16cd664d015
tree4fa6af4c7579459e3543cd19de8b0bd122569869
parent939a5f0d6880d3276a3ea16dc06be54d43d18933
cxgb4: fix possible deadlock

t4_wr_mbox_meat_timeout() can be called from both softirq
context and process context, hence protect the mbox with
spin_lock_bh() instead of simple spin_lock()

Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c