Fix pci_io_handle allocation routines.
authorMatthieu Herrb <matthieu.herrb@laas.fr>
Mon, 2 Apr 2012 06:22:23 +0000 (08:22 +0200)
committerMatthieu Herrb <matthieu.herrb@laas.fr>
Wed, 4 Apr 2012 06:12:10 +0000 (08:12 +0200)
commit6f9d9f1e1b093939bc459be606fba72f1d6dfc76
tree7de0194b9468ac6dc500bc032394ab347d11fc83
parent725f5669bc03ed9a766e2c51c465e082172e6dae
Fix pci_io_handle allocation routines.

The previous version of new_io_handle()  would invalidate all previous
allocations when realloc moves the base pointer of the ios array.
Since I cannot figure out where this array is useful, just get rid of
it, providing sound stable memory allocation.

Fixes vgaHWSaveFonts() in 1.12 xserver on OpenBSD, but other
sub-systems relaying on pci_io could be affected too.

Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Tested-by: Tormod Volden <debian.tormod@gmail.com>
src/common_io.c