summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>1998-12-21 06:22:58 +0000
committerjason <jason@openbsd.org>1998-12-21 06:22:58 +0000
commit3f094a7cd217c8ed18d02b8c48d20f69ef337de6 (patch)
tree9a0deca436c817b669c10a33d36cf10daee436a7
parentcorrect built-in kill (diff)
downloadwireguard-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.c3
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;
}
}