Re: [PATCH] kobject_set_name: free old_name in case of ENOMEM

Greg KH
2009-09-09T17:20:27Z

On Wed, Sep 09, 2009 at 06:53:21PM +0200, Sebastian Ott wrote:
>
> If the memory allocation for the kobject's name fails we should free
> the old_name since it is no longer accessible via kobj->name.

Hasn't this come up a bunch in the past, and we do not want to do this?

You might want to search the lkml archives for details...

thanks,

greg k-h