intel_bios_dumper: handle rom_size == 0
authorForest Bond <forest@alittletooquiet.net>
Tue, 22 Mar 2011 14:31:43 +0000 (10:31 -0400)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Mar 2011 14:44:25 +0000 (14:44 +0000)
commitd641f0fd42c2f59459641f039a8da7d3b2adbae8
tree40e2bf6662daee0310cb30edd48a2160f0afb14d
parent3f10ff85bd2bb65e49e52ec4f025dc977985b4b6
intel_bios_dumper: handle rom_size == 0

Some versions of libpciaccess on Linux set rom_size to 0 for VGA
devices.  While this behavior may change, intel_bios_dumper should
handle this situation to be compatible with current versions of the
library.

This fixes segmentation faults on affected systems.

Signed-off-by: Forest Bond <forest.bond@rapidrollout.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tools/intel_bios_dumper.c