diff options
author | Martin Mares <mj@ucw.cz> | 2016-05-14 11:31:59 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2016-05-14 11:31:59 +0200 |
commit | 42502a496786c94c6f8c246eab08f3f0c8f7db49 (patch) | |
tree | 154ca755a66f50cc269953ae9baa9b7c0375ffb7 | |
parent | 3d0a6d881571712f234a8b5733eaa194c50d7885 (diff) | |
download | pciutils-42502a496786c94c6f8c246eab08f3f0c8f7db49.tar.gz |
NetBSD: Make extended configuration space available
Patch by Masanobu SAITOH <msaitoh@execsw.org>.
-rw-r--r-- | lib/nbsd-libpci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nbsd-libpci.c b/lib/nbsd-libpci.c index 20d7616..f57d133 100644 --- a/lib/nbsd-libpci.c +++ b/lib/nbsd-libpci.c @@ -71,7 +71,7 @@ nbsd_read(struct pci_dev *d, int pos, byte *buf, int len) if (!(len == 1 || len == 2 || len == 4)) return pci_generic_block_read(d, pos, buf, len); - if (pos >= 256) + if (pos >= 4096) return 0; shift = 8*(pos % 4); |