android_kernel_oneplus_msm8998/drivers/net/ethernet/qlogic
Jia-Ju Bai 819bb2c00f qlcnic: Fix a sleep-in-atomic bug in qlcnic_82xx_hw_write_wx_2M and qlcnic_82xx_hw_read_wx_2M
[ Upstream commit 5ea6d691aac6c93b790f0905e3460d44cc4c449b ]

The driver may sleep under a write spin lock, and the function
call path is:
qlcnic_82xx_hw_write_wx_2M (acquire the lock by write_lock_irqsave)
  crb_win_lock
    qlcnic_pcie_sem_lock
      usleep_range
qlcnic_82xx_hw_read_wx_2M (acquire the lock by write_lock_irqsave)
  crb_win_lock
    qlcnic_pcie_sem_lock
      usleep_range

To fix it, the usleep_range is replaced with udelay.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-13 19:50:16 +02:00
..
netxen netxen_nic: set rcode to the return status from the call to netxen_issue_cmd 2018-04-13 19:50:04 +02:00
qed qed: Fix setting/clearing bit in completion bitmap 2016-08-16 09:30:48 +02:00
qede qede: Add basic ethtool support 2015-10-27 19:34:54 -07:00
qlcnic qlcnic: Fix a sleep-in-atomic bug in qlcnic_82xx_hw_write_wx_2M and qlcnic_82xx_hw_read_wx_2M 2018-04-13 19:50:16 +02:00
qlge qlge: Avoid reading past end of buffer 2018-04-13 19:50:02 +02:00
Kconfig qed: select ZLIB_INFLATE 2015-11-10 15:39:03 -05:00
Makefile qede: Add basic Network driver 2015-10-27 19:34:47 -07:00
qla3xxx.c drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
qla3xxx.h