X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fkobject.c;h=fbf0ae28237672a6fafdbbf29e481d76c45ddd11;hb=8d163b3fa52bb532a4d431c195352fcf356b4977;hp=bd732ffebc85f36cfc30e70fa124f0566701ecba;hpb=5047887caf1806f31652210df27fb62a7c43f27d;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);