diff options
author | Jiri Pirko <jpirko@redhat.com> | 2011-10-11 23:00:41 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-11 09:36:28 -0800 |
commit | ec668dbad7f732767d5484e1c7b317c767777f27 (patch) | |
tree | 56e432298a62720a42075306a47d3140708ef520 /net | |
parent | b00654416d4baccf2269ec888e55d6df069cd36f (diff) |
tg3: negate USE_PHYLIB flag check
[ Upstream commit e730c82347b9dc75914da998c44c3f348965db41 ]
USE_PHYLIB flag in tg3_remove_one() is being checked incorrectly. This
results tg3_phy_fini->phy_disconnect is never called and when tg3 module
is removed.
In my case this resulted in panics in phy_state_machine calling function
phydev->adjust_link.
So correct this check.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Acked-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions