]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - lib/kobject.c
Merge branch 'x86/tracehook' into x86-v28-for-linus-phase1
[karo-tx-linux.git] / lib / kobject.c
index bd732ffebc85f36cfc30e70fa124f0566701ecba..fbf0ae28237672a6fafdbbf29e481d76c45ddd11 100644 (file)
@@ -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);