mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
scsi: Fix construction of sysfs device path
The device bus value was used instead of the device target when building the sysfs device path. Trivial. Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
This commit is contained in:
parent
2ce63c1611
commit
2c94e00c60
@ -218,7 +218,7 @@ virSCSIDeviceNew(const char *adapter,
|
||||
goto cleanup;
|
||||
|
||||
if (virAsprintf(&dev->name, "%d:%d:%d:%d", dev->adapter,
|
||||
dev->bus, dev->bus, dev->unit) < 0 ||
|
||||
dev->bus, dev->target, dev->unit) < 0 ||
|
||||
virAsprintf(&dev->sg_path, "/dev/%s", sg) < 0) {
|
||||
virReportOOMError();
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user