From 2715403f3b3185776d4bedd912e5524e0b78ba87 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 20 Jan 2000 21:23:14 +0000 Subject: [PATCH] Fixed a bug in fetching of cardbus bridge header extensions. --- ChangeLog | 2 ++ lspci.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c8a72c9..58f7c34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ Thu Jan 20 11:08:32 2000 Martin Mares + * lspci.c (scan_device): Fixed bug in reading of cardbus extensions. + * lib/proc.c: pread/pwrite fixed again, this time on libc5 :( * lspci.c (format_agp_rate): Better formatting of AGP rates. diff --git a/lspci.c b/lspci.c index ba7b82e..77e0786 100644 --- a/lspci.c +++ b/lspci.c @@ -1,5 +1,5 @@ /* - * $Id: lspci.c,v 1.33 2000/01/20 21:15:41 mj Exp $ + * $Id: lspci.c,v 1.34 2000/01/20 21:23:14 mj Exp $ * * Linux PCI Utilities -- List All PCI Devices * @@ -101,7 +101,7 @@ scan_device(struct pci_dev *p) if (how_much < 128 && (d->config[PCI_HEADER_TYPE] & 0x7f) == PCI_HEADER_TYPE_CARDBUS) { /* For cardbus bridges, we need to fetch 64 bytes more to get the full standard header... */ - if (!pci_read_block(p, 0, d->config+64, 64)) + if (!pci_read_block(p, 64, d->config+64, 64)) die("Unable to read cardbus bridge extension data."); how_much = 128; } -- 2.39.2