From: mbuesch@freenet.de Date: Tue, 1 Feb 2005 10:12:32 +0000 (+0100) Subject: [PATCH] The attached patch fixes the code path if namedev_name_device() fails. X-Git-Tag: 051~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85a953c0eeb66260f77bd69a255034af18cdbba0;p=systemd [PATCH] The attached patch fixes the code path if namedev_name_device() fails. --- diff --git a/udev_add.c b/udev_add.c index acd678ff..d4cccfc0 100644 --- a/udev_add.c +++ b/udev_add.c @@ -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);