commit | 2db2546a0b5c0bc1f5053cc3b6353de432abb456 | [log] [tgz] |
---|---|---|
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | Thu Nov 30 14:25:05 2017 +0000 |
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | Thu Nov 30 17:18:55 2017 +0000 |
tree | 8a6f3991b936d703fa557e1850053b423fcc7989 | |
parent | dcef290aff6d72824d48811173077d8eda19185a [diff] |
v4l: async: Protect against double notifier regstrations 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 twice. Protect against this so that a developer has some sense of the pending failure. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>