]> git.baikalelectronics.ru Git - kernel.git/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)
commit9a53f125c05ced329ca10a6358609ffd02c7074e
treee87eea7fa63da9b38dfaf9eeab558e52a5cc0c4c
parent9a50a97e12d74e8ed18f8a00fb655e51463bd67e
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