Re: [PATCH] atmel: fix an error handle in mxt_probe

2015-05-13 Thread Pan Xinhui
HI, Dmitry thanks for your reply :) On 2015年05月14日 01:41, Dmitry Torokhov wrote: Hi, On Wed, Apr 22, 2015 at 06:46:58PM +0800, Pan Xinhui wrote: mxt_probe() may fail at last step, and the queue_work scheduled by request_firmware_nowait may run later and then access some data which is

Re: [PATCH] atmel: fix an error handle in mxt_probe

2015-05-13 Thread Dmitry Torokhov
Hi, On Wed, Apr 22, 2015 at 06:46:58PM +0800, Pan Xinhui wrote: > mxt_probe() may fail at last step, and the queue_work scheduled by > request_firmware_nowait > may run later and then access some data which is freed. > To handle this error, add one mutex_lock to cover such case. It may cause > m