]> asedeno.scripts.mit.edu Git - linux.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)
commitd9ac2d99787d08c0e3f777dac5aeaa3fed61b692
tree4fa6af4c7579459e3543cd19de8b0bd122569869
parent955ec4cb3b54c7c389a9f830be7d3ae2056b9212
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