Re: [PATCH] drivers:input:free the memory before set it to NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 三, 2011-07-20 at 16:54 +0100, Alan Cox wrote:
> On Wed, 20 Jul 2011 23:41:36 +0800
> Wanlong Gao <wanlong.gao@xxxxxxxxx> wrote:
> 
> > The memory of the platform driver data should be freed
> > before it was set to NULL.
> 
> This seems backwards to me. Currently the reference is invalidated before
> the object, which seems to make more sense.
> 
> As there is no locking here it really makes no difference anyway
Hmm...
FYI, I see it. Thanks Alan.
And sorry for making noise.

Wanlong Gao
> 
> > 


--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux