[PATCH] The attached patch fixes the code path if namedev_name_device() fails.
This commit is contained in:
committed by
Greg KH
parent
c033fd9f01
commit
85a953c0ee
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user