Re: [PATCH 3/6] Driver core: Fix memory leak on class_registererror path

From: Greg KH
Date: Thu Jul 22 2010 - 19:44:40 EST


On Thu, Jul 22, 2010 at 03:09:03PM -0700, Patrick Pannuto wrote:
> This leak is the same as the bus path; cp's kobj name
> is set, but kset_register fails, free'ing cp, but not
> cp->class_subsys.kobj.name

Same objection here, I don't like how you are having to "know" about how
kobject names are handled here.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/