Date: Fri, 15 Feb 2002 22:18:25 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: current@FreeBSD.ORG, sos@freebsd.dk Subject: followup w/patch... current kernel crashing in ata_raid_attach at boot Message-ID: <200202160618.g1G6IPZ87314@apollo.backplane.com>
next in thread | raw e-mail | index | archive | help
:
: This is on a DELL2550. I do not have any ATA hard drives, let alone ata
: raid drives or, in fact, any raid drives of any kind. I do have an ata
: CDROM.
:
: A Feb 5 -current kernel boots fine.
:
: -Matt
: Matthew Dillon
: <dillon@backplane.com>
I believe this will fix the problem (I'll leave it to Soren to commit it
or the appropriate fix):
-Matt
Index: ata-raid.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-raid.c,v
retrieving revision 1.24
diff -u -r1.24 ata-raid.c
--- ata-raid.c 12 Feb 2002 11:35:15 -0000 1.24
+++ ata-raid.c 16 Feb 2002 06:12:07 -0000
@@ -119,6 +119,9 @@
dev_t dev;
int array, disk;
+ if (ar_table == NULL) /* no devices to scan */
+ return;
+
for (array = 0; array < MAX_ARRAYS; array++) {
if (!(raid = ar_table[array]) || !raid->flags)
continue;
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202160618.g1G6IPZ87314>
