> This bug is not present in version 3.0.3 (Lenny), it's in 3.1.2 as
> explained above by Julien.
This is not a bug in libpci, but rather a deficiency in its documentation
leading to improper usage in certain applications.
The pci_dev->base_addr[] array was always intended to contain the BAR
values including the flags in lower bits and it behaved that way for
a long time, except for the sysfs back-end which was setting them
improperly. This bug was however fixed in pciutils-3.1.0
(commit 6d143c3283855c474445a3cf27c65280ed7ab1b7), exposing the
problem in applications to a much larger audience.
I have added a note to the declaration in lib/pci.h explaining
the proper semantics.
Have a nice fortnight
--
Martin `MJ' Mares <[email protected]> http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"Never send to know for whom the bell tolls: it tolls for thee." -- John Donne
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]