From: greg@kroah.com Date: Tue, 17 Feb 2004 02:19:48 +0000 (-0800) Subject: [PATCH] Fix bug where we did not use the "converted" kernel name if we had no rule. X-Git-Tag: 018~34 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=7a4877bf6fea5f1d1d8390b7efd6b8a53003631a [PATCH] Fix bug where we did not use the "converted" kernel name if we had no rule. This fixes the bug with names that have a ! in them and no rule to match. --- diff --git a/namedev.c b/namedev.c index 018fd452e..f138fe976 100644 --- a/namedev.c +++ b/namedev.c @@ -745,7 +745,7 @@ int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *ud } /* no rule was found so we use the kernel name */ - strfieldcpy(udev->name, class_dev->name); + strfieldcpy(udev->name, udev->kernel_name); goto done; found: