Skip to contentSkip to conversation

PNP BIOS oneliner fix

PATCH New Andrey Panin 1 participant 1 message Aug 6, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PNP BIOS oneliner fix

Hi all,

attached oneliner patch fixes buglet in PNP BIOS resource parsing code, without this patch all io regions have IORESOURCE_MEM type.

Bug didn't hit parport_pc driver, because it doesn't check io region type (why?).

Best regards.

Signature · 2 lines
Andrey Panin            | Embedded systems software engineer
[email protected]        | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
linux/drivers/pnp/pnp_bios.c renamed from linux.vanilla/drivers/pnp/pnp_bios.c +1 -1
diff -urN -X /usr/dontdiff /linux.vanilla/drivers/pnp/pnp_bios.c /linux/drivers/pnp/pnp_bios.c
@@ -656,7 +656,7 @@
 	if (i < DEVICE_COUNT_RESOURCE) {
 		dev->resource[i].start = io;
 		dev->resource[i].end = io + len;
-		dev->resource[i].flags = IORESOURCE_MEM;
+		dev->resource[i].flags = flags;
 	}
 }