From dc9495d8a66e040101baf23b0c7b478ae9daf531 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Thu, 1 Mar 2007 21:28:57 +0000 Subject: If the kauai is not found in openfirmware, abort the config. ok deraadt --- sys/arch/macppc/pci/kauaiata.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/arch/macppc/pci') diff --git a/sys/arch/macppc/pci/kauaiata.c b/sys/arch/macppc/pci/kauaiata.c index 31b54e00218..c09160f82ff 100644 --- a/sys/arch/macppc/pci/kauaiata.c +++ b/sys/arch/macppc/pci/kauaiata.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kauaiata.c,v 1.8 2007/02/05 06:46:56 drahn Exp $ */ +/* $OpenBSD: kauaiata.c,v 1.9 2007/03/01 21:28:56 drahn Exp $ */ /* * Copyright (c) 2003 Dale Rahn @@ -108,6 +108,11 @@ kauaiataattach(struct device *parent, struct device *self, void *aux) if (node == -1) node = OF_finddevice("/pci@f4000000/ata-6"); + if (node == -1) { + printf("\n"); + return; + } + /* * XXX - need to compare node and PCI id to verify this is the * correct device. -- cgit v1.2.3