lkml.org 
[lkml]   [2015]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] parport: modify parport subsystem to use devicemodel
On Wed, Apr 15, 2015 at 02:50:55PM +0530, Sudip Mukherjee wrote:
> <snip>
> > > + tmp->name = name;
> >
> > I wonder who frees this name variable. My concern is that it gets
> > freed before we are done using it or something. (I have not looked at
> > the details).
> it will be done in free_port() the release callback of parport device.

That doesn't work. Some of the callers pass a string literal.

regards,
dan carpenter



\
 
 \ /
  Last update: 2015-04-15 12:21    [W:0.055 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site