From 1b803805bb5f4d9989162c3e2eb6a6abbd1f7943 Mon Sep 17 00:00:00 2001 From: Bartlomiej Zolnierkiewicz Date: Tue, 13 Apr 2004 04:28:16 -0700 Subject: [PATCH] [PATCH] hpt366.c: fix 'cat /proc/ide/hpt366' crash Disable code doing outb() without any locking in /proc handler. Otherwise 'cat /proc/ide/hpt366' crashes if done during I/O. Noticed by John Stoffel . --- drivers/ide/pci/hpt366.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c index 6b524e4aec50..d3129b2a9b2c 100644 --- a/drivers/ide/pci/hpt366.c +++ b/drivers/ide/pci/hpt366.c @@ -107,7 +107,7 @@ static int hpt366_get_info (char *buffer, char **addr, off_t offset, int count) " %s\n", (c0 & 0x80) ? "no" : "yes", (c1 & 0x80) ? "no" : "yes"); - +#if 0 if (hpt_minimum_revision(dev, 3)) { u8 cbl; cbl = inb(iobase + 0x7b); @@ -120,7 +120,7 @@ static int hpt366_get_info (char *buffer, char **addr, off_t offset, int count) (cbl & 0x01) ? 33 : 66); p += sprintf(p, "\n"); } - +#endif p += sprintf(p, "--------------- drive0 --------- drive1 " "------- drive0 ---------- drive1 -------\n"); p += sprintf(p, "DMA capable: %s %s" -- 2.39.5