From 85a953c0eeb66260f77bd69a255034af18cdbba0 Mon Sep 17 00:00:00 2001 From: "mbuesch@freenet.de" Date: Tue, 1 Feb 2005 11:12:32 +0100 Subject: [PATCH] The attached patch fixes the code path if namedev_name_device() fails. --- udev_add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev_add.c b/udev_add.c index acd678ffba..d4cccfc085 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); -- cgit v1.2.3-54-g00ecf