]> git.baikalelectronics.ru Git - kernel.git/commit
netxen: Fix BUG "sleeping function called from invalid context"
authorManish Chopra <manish.chopra@qlogic.com>
Tue, 30 Sep 2014 07:56:35 +0000 (03:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Sep 2014 20:22:43 +0000 (16:22 -0400)
commit0e59ab4739c693fc90cada33092a421ec941aaa9
treed2bdf6d34aa1dae6b122364bdbd2b6a4e84e4bc9
parent06351fb8a69ff71c05b6de5d75156a1c8c3ece14
netxen: Fix BUG "sleeping function called from invalid context"

o __netxen_nic_down() function might sleep while holding spinlock_t(tx_clean_lock).
  Acquire this lock for only releasing TX buffers instead of taking it
  for whole down path.

Reported-by: Mike Galbraith <umgwanakikbuti@gmail.com>
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c