summaryrefslogtreecommitdiff
path: root/udev_add.c
diff options
context:
space:
mode:
authormbuesch@freenet.de <mbuesch@freenet.de>2005-02-01 11:12:32 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:24:19 -0700
commit85a953c0eeb66260f77bd69a255034af18cdbba0 (patch)
treeb51f0f7f803f6a59196af437a44327307027e1df /udev_add.c
parentc033fd9f01b3cd5771875069c26d3af06969a300 (diff)
[PATCH] The attached patch fixes the code path if namedev_name_device() fails.
Diffstat (limited to 'udev_add.c')
-rw-r--r--udev_add.c2
1 files changed, 1 insertions, 1 deletions
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);