]> git.proxmox.com Git - mirror_qemu.git/commit - hw/pci/pci.c
pci: don't ignore invalid parameter for pci_register_bar().
authorIsaku Yamahata <yamahata@valinux.co.jp>
Thu, 9 Sep 2010 02:48:56 +0000 (11:48 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 13 Sep 2010 19:03:51 +0000 (21:03 +0200)
commit2bbb9c2f7f36d0457cda5f27d7e4422219b3acd8
treeff7c7a1a9a26e84629283df6ab7ae3c89d594dd9
parent5a9ff3819a1023b63b94ad4fb82da973f93f65d0
pci: don't ignore invalid parameter for pci_register_bar().

Abort when invalid value for region_num is passed to pci_register_bar.
That is caller's bug. Abort instead of silently ignoring invalid value.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci.c