On 10/06/2013 08:57 PM, Alex Dubov wrote:
Hi,

In the good old times, when this driver was first written, device name used to 
be a fixed
size array (of 32 chars, if I'm not mistaken) in the kobj struct, so there was 
no need to
free it explicitly.

Since than, somebody changed the name field to become a loose pointer, but it's 
not
obvious how it is supposed to be handled these days.

It has been some time since it was changed. In commit af5ca3f by Kay Sievers and merged on Dec 20, 2007, "const char *k_name" was changed to "const char *name". I did not go any further back.

I'll submit V2 of my patch for further comment.

Larry



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

Reply via email to