X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fnbsd-libpci.c;h=f57d133d932b3c360fb3f4684e56e9b3a37ef7b5;hb=d9b1b8e350adbaf97713ce50b044f1c63d6a98cf;hp=20d76169a6407036f2dd15f49e487852c60a839e;hpb=52c815195259cc9d388fac44ead8191de7d24c76;p=pciutils.git 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);