Re: [PATCH] v4l: async: Protect against double notifier regstrations

2018-01-16 Thread Kieran Bingham
Hi Sakari, Thanks for the quick review. On 16/01/18 15:23, Sakari Ailus wrote: > Hi Kieran, > > On Tue, Jan 16, 2018 at 02:52:58PM +, Kieran Bingham wrote: >> From: Kieran Bingham >> >> It can be easy to attempt to register the same notifier twice

Re: [PATCH] v4l: async: Protect against double notifier regstrations

2018-01-16 Thread Sakari Ailus
Hi Kieran, On Tue, Jan 16, 2018 at 02:52:58PM +, Kieran Bingham wrote: > From: Kieran Bingham > > It can be easy to attempt to register the same notifier twice > in mis-handled error cases such as working with -EPROBE_DEFER. > > This results in odd

[PATCH] v4l: async: Protect against double notifier regstrations

2018-01-16 Thread Kieran Bingham
From: Kieran Bingham It can be easy to attempt to register the same notifier twice in mis-handled error cases such as working with -EPROBE_DEFER. This results in odd kernel crashes where the notifier_list becomes corrupted due to adding the same entry