On Wed, 26 Mar 2008, Robert P. J. Day wrote: > > Signed-off-by: Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> > > --- > > diff --git a/fs/char_dev.c b/fs/char_dev.c > index 038674a..1527134 100644 > --- a/fs/char_dev.c > +++ b/fs/char_dev.c > @@ -281,7 +281,7 @@ int register_chrdev(unsigned int major, const char *name, > > cdev->owner = fops->owner; > cdev->ops = fops; > - kobject_set_name(&cdev->kobj, "%s", name); > + kobject_rename(&cdev->kobj, name); > for (s = strchr(kobject_name(&cdev->kobj),'/'); s; s = strchr(s, '/')) > *s = '!'; > whoops, that patch might not be correct. best to play it safe and toss it for now. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry: Have classroom, will lecture. http://crashcourse.ca Waterloo, Ontario, CANADA ======================================================================== -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html