From ee9e2737a18f52907a72428eeaba1a44a796fae7 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 16 Sep 2004 01:51:21 +0000 Subject: [PATCH] For the moment, treat failures to attach floppy drives as non-fatal errors for the attachment process for the floppy controller. This is a band-aide because it doesn't try any of the fallback methods when _FDE isn't long enough, but should be sufficient for people experiencing the dreaded mutex not initialized panic. --- sys/dev/fdc/fdc_acpi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/fdc/fdc_acpi.c b/sys/dev/fdc/fdc_acpi.c index 9c0377812b5..da4d3847dfe 100644 --- a/sys/dev/fdc/fdc_acpi.c +++ b/sys/dev/fdc/fdc_acpi.c @@ -137,7 +137,6 @@ fdc_acpi_attach(device_t dev) fde = (uint32_t *)obj->Buffer.Pointer; if (obj->Buffer.Length < 20) { device_printf(dev, "_FDE too small\n"); - error = ENXIO; goto out; } break; @@ -150,7 +149,6 @@ fdc_acpi_attach(device_t dev) fde = malloc(pkg->Package.Count * sizeof(uint32_t), M_TEMP, M_NOWAIT | M_ZERO); if (fde == NULL) { - error = ENOMEM; goto out; } for (i = 0; i < pkg->Package.Count; i++) {