Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2003 21:26:05 +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:  <200310071926.h97JQ5eA004835@spider.deepcore.dk>
In-Reply-To: <1065519776.1540.4.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
It seems Vladimir B. Grebenschikov wrote:
> > Any solution or workaround ?

Try this patch please:

diff -u -r1.191 ata-all.c
--- ata-all.c   7 Oct 2003 13:44:15 -0000       1.191
+++ ata-all.c   7 Oct 2003 19:15:03 -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,7 +556,7 @@
            }
            ata_free_request(request);
        }
-       if (error) {
+       if (error || !isalpha(atacap->model[0]) || !isalpha(atacap->model[1])) {
            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?200310071926.h97JQ5eA004835>