]> xenbits.xen.org Git - xenclient/ioemu.git/commit
pci_add storage: fix error handling for 'if' parameter (Eduardo Habkost)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 5 Apr 2009 18:16:04 +0000 (18:16 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 5 Apr 2009 18:16:04 +0000 (18:16 +0000)
commit937e9a1c83cab9995778ed2037663948725b7079
tree75890ff0fd8fb0bca0addba38dfcc810d691d0aa
parent4498819404f055fa39249dc13fc692aff9d6af14
pci_add storage: fix error handling for 'if' parameter (Eduardo Habkost)

This fixes:

 - The error message to show the actual if= argument value. It was showing
   the filename instead, because 'buf' is reaused on the filename parsing.
 - A bug that makes a block device to be created even when an unsupported if= arg
   is passed to pci_add.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/branches/stable_0_10@6987 c046a42c-6fe2-441c-8c8c-71466251a162
hw/pci-hotplug.c