Stefan Hajnoczi 8c7f3dd05e pci: refuse empty ROM files
A zero size ROM file is invalid and should produce a warning.
Attempting to use a zero size file ends up hitting an assertion
qemu_ram_set_idstr() because RAMBlocks with duplicate addresses are
allocated - due to zero size the allocator doesn't increment the next
available RAMBlock offset.

Also convert __FUNCTION__ to __func__ while we're touching this code.
There are no other __FUNCTION__ instances in pci.c anymore.

Reported-by: Milos Ivanovic <milosivanovic@orcon.net.nz>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2013-03-26 21:02:17 +02:00
..
2013-03-12 10:35:55 +01:00
2013-02-22 21:29:44 +01:00
2013-03-26 21:02:17 +02:00
2013-03-12 10:35:55 +01:00
2012-10-23 08:58:25 -05:00
2013-03-12 10:35:55 +01:00
2012-12-19 08:31:31 +01:00
2012-12-19 08:31:31 +01:00
2012-12-19 08:31:31 +01:00
2012-12-19 08:31:31 +01:00
2012-12-19 08:31:31 +01:00
2012-12-19 08:31:31 +01:00
2012-10-23 08:58:25 -05:00
2013-01-07 12:57:24 +01:00
2012-10-23 08:58:25 -05:00
2012-10-23 08:58:25 -05:00
2012-11-12 16:42:56 +01:00
2012-12-19 08:31:31 +01:00
2012-11-10 13:49:20 +00:00
2012-12-04 13:52:43 +01:00
2013-01-15 04:09:13 +01:00
2012-12-19 08:31:31 +01:00
2013-03-26 21:02:16 +02:00
2012-12-19 08:31:31 +01:00
2012-10-23 08:58:25 -05:00
2013-02-01 11:03:02 -06:00
2013-02-01 11:03:02 -06:00