mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 19:02:25 +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> (cherry picked from commit 2c94e00c6098662661cd67a10e982a32b6054a3c)
This commit is contained in:
parent
53ad572966
commit
371564baf4
@ -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…
x
Reference in New Issue
Block a user