mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 14:55:26 +03:00
[PATCH] If a LABEL rule has a BUS id, then we must check to see if the device is on a bus.
This commit is contained in:
parent
a38401d3e8
commit
a7402175da
@ -473,7 +473,10 @@ static int do_label(struct sysfs_class_device *class_dev, struct udevice *udev,
|
||||
if (dev->type != LABEL)
|
||||
continue;
|
||||
|
||||
if (sysfs_device) {
|
||||
if (dev->bus[0] != '\0') {
|
||||
/* as the user specified a bus, we must match it up */
|
||||
if (!sysfs_device)
|
||||
continue;
|
||||
dbg("dev->bus='%s' sysfs_device->bus='%s'", dev->bus, sysfs_device->bus);
|
||||
if (strcasecmp(dev->bus, sysfs_device->bus) != 0)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user