]> Pileus Git - ~andy/linux/commit
tg3: Fix inconsistent locking for tg3_netif_start().
authorNithin Nayak Sujir <nsujir@broadcom.com>
Mon, 3 Dec 2012 19:36:56 +0000 (19:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Dec 2012 17:58:49 +0000 (12:58 -0500)
commit357630668a638418d542d0e331c90c01a091a3f1
treee87eea7fa63da9b38dfaf9eeab558e52a5cc0c4c
parent682d7978aee072f411fc747d32954a8371dd7b1b
tg3: Fix inconsistent locking for tg3_netif_start().

Every caller holds tp->lock when calling tg3_netif_start() except
tg3_io_resume().  Fix it so that it is all consistent.  The subsequent
PTP patches add tg3_ptp_resume() to tg3_netif_start() and the tp->lock
is required.

Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c