On Wed, 19 Sep 2007 20:02:05 +0200, Cornelia Huck <cornelia.huck@de.ibm.com> wrote:kobject: Temporarily save k_name on cleanup for debug message. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> --- lib/kobject.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) --- linux-2.6.orig/lib/kobject.c +++ linux-2.6/lib/kobject.c @@ -498,9 +498,9 @@ void kobject_cleanup(struct kobject * ko struct kobj_type * t = get_ktype(kobj); struct kset * s = kobj->kset; struct kobject * parent = kobj->parent; + const char *k_name = kobj->k_name; pr_debug("kobject %s: cleaning up\n",kobject_name(kobj)); - kfree(kobj->k_name); kobj->k_name = NULL; if (t && t->release) t->release(kobj); @@ -508,8 +508,8 @@ void kobject_cleanup(struct kobject * ko pr_debug("kobject '%s' does not have a release() function, " "if this is not a directory kobject, it is broken " "and must be fixed.\n", - kobject_name(kobj)); - + k_name); + kfree(k_name); if (s) kset_put(s); kobject_put(parent); -
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Justin C. Sherrill | Re: pkgsrc bulk build and tiff |
| Jeremy Allison | Re: [RFC] Heads up on sys_fallocate() |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
| Matt Thomas | Re: Add a MAP_ALIGNED flag for mmap(2). |
| Vsevolod Stakhov | Unicode support in iso9660. |
| Jaromir Dolecek | Re: Speeding up fork/wait path |
| matthew green | re: merge of freebsd eventhandler |
git: | |
| Petr Janda | KDE and OpenSSL = Broken |
| sam | Re: Loader not found |
| Erick Perez | Re: dragonfly pdf documentation |
| Michel Talon | Re: Compatability with FreeBSD Ports [debian package tools] |
