Re: ATAng doesn't boot on my notebook - panic

From: Soren Schmidt <sos_at_spider.deepcore.dk>
Date: Tue, 7 Oct 2003 21:26:05 +0200 (CEST)
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
_at__at_ -35,6 +35,7 _at__at_
 #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>
_at__at_ -555,7 +556,7 _at__at_
            }
            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
Received on Tue Oct 07 2003 - 11:31:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:24 UTC