tg3: tg3_reset_task() needs to use rtnl_lock to synchronize
authorPrashant Sreedharan <prashant@broadcom.com>
Wed, 14 Jan 2015 19:34:17 +0000 (11:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jan 2015 22:05:51 +0000 (17:05 -0500)
commitdb84bf43ef23157cbb40ce8626475187f5ae90c3
tree081715d4e53dbfc7a6d404355a165b6dbcc766b9
parent4fd190a938cbb28ac9d42c5c86f5c829cc014537
tg3: tg3_reset_task() needs to use rtnl_lock to synchronize

Currently tg3_reset_task() uses only tp->lock for synchronizing with code
paths like tg3_open() etc. But since tp->lock is released before doing
synchronize_irq(), rtnl_lock should be taken in tg3_reset_task() to
synchronize it with other code paths.

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