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

From: Greg KH
Date: Wed Sep 09 2009 - 13:20:38 EST


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
--
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/