Jun'ichi Nomura \(NEC\) d0af71a357 tg3: Hold tp->lock before calling tg3_halt() from tg3_init_one()
tg3_init_one() calls tg3_halt() without tp->lock despite its assumption
and causes deadlock.
If lockdep is enabled, a warning like this shows up before the stall:

  [ BUG: bad unlock balance detected! ]
  3.19.0test  Tainted: G            E
  -------------------------------------
  insmod/369 is trying to release lock (&(&tp->lock)->rlock) at:
  [<ffffffffa02d5a1d>] tg3_chip_reset+0x14d/0x780 [tg3]
  but there are no more locks to release!

tg3_init_one() doesn't call tg3_halt() under normal situation but
during kexec kdump I hit this problem.

Fixes: 932f19de ("tg3: Release tp->lock before invoking synchronize_irq()")
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-11 19:51:08 -08:00
..
2015-02-05 16:03:27 -08:00
2015-02-07 22:46:25 -08:00
2015-02-11 19:49:44 -08:00
2014-12-09 21:51:06 -05:00
2014-10-07 13:22:11 -04:00
2014-10-07 13:22:11 -04:00
2015-02-08 16:53:57 -08:00
2015-01-23 17:51:15 -08:00