mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
[PATCH] The attached patch fixes the code path if namedev_name_device() fails.
This commit is contained in:
parent
c033fd9f01
commit
85a953c0ee
@ -292,7 +292,7 @@ int udev_add_device(struct udevice *udev, struct sysfs_class_device *class_dev)
|
||||
}
|
||||
|
||||
if (namedev_name_device(udev, class_dev) != 0)
|
||||
goto exit;
|
||||
return 0;
|
||||
|
||||
dbg("adding name='%s'", udev->name);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user