[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20061217.170743.122943075.davem@davemloft.net>
Date: Sun, 17 Dec 2006 17:07:43 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: mchan@...adcom.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 2/4][TG3]: Fix race condition when calling
register_netdev().
From: "Michael Chan" <mchan@...adcom.com>
Date: Fri, 15 Dec 2006 22:48:43 -0800
> [TG3]: Fix race condition when calling register_netdev().
>
> Hot-plug scripts can call tg3_open() as soon as register_netdev() is
> called in tg3_init_one(). We need to call pci_set_drvdata() before
> register_netdev(), and netif_carrier_off() needs to be moved to
> tg3_open() to avoid race conditions.
>
> Signed-off-by: Michael Chan <mchan@...adcom.com>
Another excellent catch, patch applied, thanks Michael.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists