Product SiteDocumentation Site

1.127. libpciaccess

1.127.1. RHBA-2011:0806: bug fix update

Updated libpciaccess packages that fix two bugs are now available for Red Hat Enterprise Linux 6.
libpciaccess is a low level system library used to access PCI devices. It provides this functionality for X.Org and virtualization layers.
This update fixes the following bugs:
  • If pci_system_init/pci_system_cleanup was run twice (or more) in a row within the one process, a double close() could occur on the config_fd variable. This caused an error, as the FD associated with nullfd was closed by the second pci_get_strings() call. That was because the pci_device_linux_sysfs_destroy() failed to re-initialize the global 'config_fd' variable to -1 after closing it. This patch adds a line to set config_fd to -1 after the closure, fixing the issue. (BZ#675756)
  • When the pci_system_init() function opened the /proc/mtrr file and saved its file descriptor, then pci_system_cleanup() would fail to close the file descriptor. This resulted in a leak of the FD. With this update, added to the above bug's patch, the file descriptor is closed as expected. (BZ#675758)
All users of libpciaccess are advised to upgrade to these updated packages which resolve these issues.