diff options
author | 1998-12-21 06:22:58 +0000 | |
---|---|---|
committer | 1998-12-21 06:22:58 +0000 | |
commit | 3f094a7cd217c8ed18d02b8c48d20f69ef337de6 (patch) | |
tree | 9a0deca436c817b669c10a33d36cf10daee436a7 | |
parent | correct built-in kill (diff) | |
download | wireguard-openbsd-3f094a7cd217c8ed18d02b8c48d20f69ef337de6.tar.xz wireguard-openbsd-3f094a7cd217c8ed18d02b8c48d20f69ef337de6.zip |
If no mii found on a card that claims to support one, don't attach the
interface.
-rw-r--r-- | sys/dev/pci/if_xl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_xl.c b/sys/dev/pci/if_xl.c index 65326971de8..aeba63f3917 100644 --- a/sys/dev/pci/if_xl.c +++ b/sys/dev/pci/if_xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xl.c,v 1.15 1998/11/23 19:56:50 jason Exp $ */ +/* $OpenBSD: if_xl.c,v 1.16 1998/12/21 06:22:58 jason Exp $ */ /* * Copyright (c) 1997, 1998 @@ -3225,6 +3225,7 @@ xl_attach(parent, self, aux) else { printf("%s: MII without any phy!\n", sc->sc_dev.dv_xname); + return; } } |