X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fkobject.c;h=fbf0ae28237672a6fafdbbf29e481d76c45ddd11;hb=ef5bef357cdf49f3a386c7102dbf3be5f7e5c913;hp=bd732ffebc85f36cfc30e70fa124f0566701ecba;hpb=470fba7ebe60ad9185056b080b331abad24b4df9;p=linux-2.6-omap-h63xx.git diff --git a/lib/kobject.c b/lib/kobject.c index bd732ffebc8..fbf0ae28237 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -223,8 +223,7 @@ static int kobject_set_name_vargs(struct kobject *kobj, const char *fmt, return -ENOMEM; /* ewww... some of these buggers have '/' in the name ... */ - s = strchr(kobj->name, '/'); - if (s) + while ((s = strchr(kobj->name, '/'))) s[0] = '!'; kfree(old_name);