diff options
author | 2008-08-25 14:39:12 +0200 | |
---|---|---|
committer | 2008-08-25 14:39:12 +0200 | |
commit | f58899bb0224741eb0409ada67ecafe90ba137ef (patch) | |
tree | 78284f77021e830b32e77071dd2ef4e5ccdaa289 /lib | |
parent | x86: fix HPET regression in 2.6.26 versus 2.6.25, check hpet against BAR, v3 (diff) | |
parent | Fix oops in acer_wmi driver (acer_wmi_init) (diff) | |
download | wireguard-linux-f58899bb0224741eb0409ada67ecafe90ba137ef.tar.xz wireguard-linux-f58899bb0224741eb0409ada67ecafe90ba137ef.zip |
Merge branch 'linus' into x86/urgent
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index bd732ffebc85..fbf0ae282376 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); |