]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
[PATCH] The attached patch fixes the code path if namedev_name_device() fails.
authormbuesch@freenet.de <mbuesch@freenet.de>
Tue, 1 Feb 2005 10:12:32 +0000 (11:12 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:24:19 +0000 (23:24 -0700)
udev_add.c

index acd678ffbaec4d76d4d450c37c067fea88ae12c7..d4cccfc085882f1fd09330484d4614b51dcd2c44 100644 (file)
@@ -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);