udev: net_id - fix copy-paste error
In case pci_slot overflows we were truncating pci_path instead.
This commit is contained in:
parent
e6ac88ddf2
commit
16f948cb20
|
@ -248,7 +248,7 @@ static int dev_pci_slot(struct udev_device *dev, struct netnames *names) {
|
||||||
if (dev_port > 0)
|
if (dev_port > 0)
|
||||||
l = strpcpyf(&s, l, "d%d", dev_port);
|
l = strpcpyf(&s, l, "d%d", dev_port);
|
||||||
if (l == 0)
|
if (l == 0)
|
||||||
names->pci_path[0] = '\0';
|
names->pci_slot[0] = '\0';
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
udev_device_unref(pci);
|
udev_device_unref(pci);
|
||||||
|
|
Loading…
Reference in a new issue