tg3: Release tp->lock before invoking synchronize_irq()
authorPrashant Sreedharan <prashant@broadcom.com>
Wed, 14 Jan 2015 19:34:44 +0000 (11:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jan 2015 22:05:51 +0000 (17:05 -0500)
commit932f19de6af9f45784d7fb730dea50525b3b5aac
treed651d9029193efd4278e9eff2cecdc9f4b754389
parentdb84bf43ef23157cbb40ce8626475187f5ae90c3
tg3: Release tp->lock before invoking synchronize_irq()

synchronize_irq() can sleep waiting, for pending IRQ handlers so driver
should release the tp->lock spin lock before invoking synchronize_irq()

Reported-by: Peter Hurley <peter@hurleysoftware.com>
Tested-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Prashant Sreedharan <prashant@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c