]> 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)
commited3f2013f14106f6dbc6c3e632ea943306094703
treed2bdf6d34aa1dae6b122364bdbd2b6a4e84e4bc9
parentb4fc1e8ea27dc9bba5aade52c91b3d40e1c3f2b6
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