aboutsummaryrefslogtreecommitdiff
path: root/tpm
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-03-11 10:20:20 +0100
committerMichael S. Tsirkin <mst@redhat.com>2013-03-26 21:02:17 +0200
commit8c7f3dd05e4f1ee90000c89e428e69ae2e6bd691 (patch)
treefbbd6d13b58514da3d8196123cbc7a63bcfa2d71 /tpm
parentea7cfed68bb4f26fc65b078ab735a4097e9b4fe2 (diff)
downloadqemu-8c7f3dd05e4f1ee90000c89e428e69ae2e6bd691.zip
qemu-8c7f3dd05e4f1ee90000c89e428e69ae2e6bd691.tar.gz
qemu-8c7f3dd05e4f1ee90000c89e428e69ae2e6bd691.tar.bz2
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>
Diffstat (limited to 'tpm')
0 files changed, 0 insertions, 0 deletions