Date: Wed, 8 Oct 2003 10:04:01 +0200 (CEST) From: Soren Schmidt <sos@spider.deepcore.dk> To: "Vladimir B. Grebenschikov" <vova@fbsd.ru> Cc: "current@freebsd.org" <current@FreeBSD.ORG> Subject: Re: ATAng doesn't boot on my notebook - panic Message-ID: <200310080804.h98841NN032169@spider.deepcore.dk> In-Reply-To: <1065598633.868.2.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
It seems Vladimir B. Grebenschikov wrote:
> Does not help, another panic in ad_attach:
ARGH, try this instead:
diff -u -r1.191 ata-all.c
--- ata-all.c 7 Oct 2003 13:44:15 -0000 1.191
+++ ata-all.c 8 Oct 2003 08:03:09 -0000
@@ -35,6 +35,7 @@
#include <sys/ata.h>
#include <sys/kernel.h>
#include <sys/endian.h>
+#include <sys/ctype.h>
#include <sys/conf.h>
#include <sys/bus.h>
#include <sys/bio.h>
@@ -555,6 +556,8 @@
}
ata_free_request(request);
}
+ if (!isalpha(atacap->model[0]) || !isalpha(atacap->model[1]))
+ error = ENXIO;
if (error) {
atadev->param = NULL;
free(atacap, M_ATA);
-Søren
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310080804.h98841NN032169>
