mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] PnP BIOS: io range length bugfix
@ 2001-07-20  6:18 Andrey Panin
  0 siblings, 0 replies; only message in thread
From: Andrey Panin @ 2001-07-20  6:18 UTC (permalink / raw)
  To: linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 509 bytes --]

Hi all,

this patch fixes bug in pnpbios_rawdata_2_pci_dev() - miscalculated length of
ioport range. This function uses word at offset 6 in I/O Port Descriptor, 
but according to ISA PnP specification ioport range length is a byte at offset 7
and byte 6 is base alignment.

BTW will it usefull to implement PnP device naming function ?

Best regards.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc

[-- Attachment #1.2: patch-pnpBIOS-2 --]
[-- Type: text/plain, Size: 509 bytes --]

diff -urN -X /usr/dontdiff /linux.vanilla/drivers/pnp/pnp_bios.c /linux/drivers/pnp/pnp_bios.c
--- /linux.vanilla/drivers/pnp/pnp_bios.c	Tue Jul 17 23:11:14 2001
+++ /linux/drivers/pnp/pnp_bios.c	Sat Jul 21 00:08:38 2001
@@ -669,7 +669,7 @@
                         break;
                 case 0x08: // io
 			io= p[2] + p[3] *256;
-			len= p[6] + p[7] *256;
+			len = p[7];
 			i=0;
                         while(pci_dev->resource[i].start && i<DEVICE_COUNT_RESOURCE)
                                 i++;

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-20  6:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-20  6:18 [PATCH] PnP BIOS: io range length bugfix Andrey Panin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®