/* The result must be freed by the caller with kfree().  */
char* kobject_get_path(struct kobject *kobj, gfp_t gfp_mask)
/* The result must be freed by the caller with kfree().  */
char* kobject_get_path(struct kobject *kobj, gfp_t gfp_mask)
{
	char *path;
	int len;
	len = get_kobj_path_length(kobj);
	if (len == 0)
		return NULL;
	path = kzalloc(len, gfp_mask);
	if (!path)
		return NULL;
	fill_kobj_path(kobj, path, len);
	return path;
}