[PATCH] IDE oops with generic ide driver

Go Taniguchi (go@turbolinux.co.jp)
Sat, 8 Jun 2002 18:21:59 +0900


Hi,

In driver/ide/ide.c file, at function ide_revalidate_disk,
If there is no IDE-disk particular driver,
DRIVER(drive) is NULL, which means it is generic IDE driver.

The 2.4.x ide.c code was not written to check if it is NULL or not.
That's the problem. All other part is checked.

--- linux/drivers/ide/ide.c.orig Fri Jun 7 04:34:09 2002
+++ linux/drivers/ide/ide.c Fri Jun 7 17:07:16 2002
@@ -2049,7 +2049,7 @@
drive->part[p].nr_sects = 0;
};

- if (DRIVER(drive)->revalidate)
+ if (DRIVER(drive) && DRIVER(drive)->revalidate)
DRIVER(drive)->revalidate(drive);

drive->busy = 0;

Regards,
GO!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/