[PATCH] kobject: don't oops on null kobject.name
authorChuck Ebbert <76306.1226@compuserve.com>
Fri, 13 Jan 2006 01:02:00 +0000 (20:02 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 6 Feb 2006 20:17:17 +0000 (12:17 -0800)
commitb365b3daf2a9e2a8b002ea9fef877af1c71513fd
treedcd673d830b61ee37ab433af60c0f81ffaa86779
parentc171fef5c8566cf5f57877e7832fa696ecdf5228
[PATCH] kobject: don't oops on null kobject.name

kobject_get_path() will oops if one of the component names is
NULL.  Fix that by returning NULL instead of oopsing.

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/kobject.c