From 76534da749ceb3b4c13ec09b173bcf6d6c2e36d4 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Wed, 3 Apr 2013 12:41:46 +0200 Subject: usb-storage: Forward serial number to scsi-disk usb-storage takes care to fetch the USB serial number from -drive options, but it neglected to pass its own 'serial' property to the scsi-disk it creates. With this patch, the 'serial' qdev property and the 'serial' option in -drive behave the same and correctly apply the serial number on both USB and SCSI level. Signed-off-by: Kevin Wolf Acked-by: Gerd Hoffmann --- hw/pci/pci-hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/pci') diff --git a/hw/pci/pci-hotplug.c b/hw/pci/pci-hotplug.c index f38df30..180ee07 100644 --- a/hw/pci/pci-hotplug.c +++ b/hw/pci/pci-hotplug.c @@ -99,7 +99,7 @@ static int scsi_hot_add(Monitor *mon, DeviceState *adapter, dinfo->unit = qemu_opt_get_number(dinfo->opts, "unit", -1); dinfo->bus = scsibus->busnr; scsidev = scsi_bus_legacy_add_drive(scsibus, dinfo->bdrv, dinfo->unit, - false, -1); + false, -1, NULL); if (!scsidev) { return -1; } -- cgit v1.1