diff options
author | mbuesch@freenet.de <mbuesch@freenet.de> | 2005-02-01 11:12:32 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:24:19 -0700 |
commit | 85a953c0eeb66260f77bd69a255034af18cdbba0 (patch) | |
tree | b51f0f7f803f6a59196af437a44327307027e1df | |
parent | c033fd9f01b3cd5771875069c26d3af06969a300 (diff) |
[PATCH] The attached patch fixes the code path if namedev_name_device() fails.
-rw-r--r-- | udev_add.c | 2 |
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); |