diff options
| author | 2019-05-10 11:15:04 -0400 | |
|---|---|---|
| committer | 2019-05-22 15:33:57 -0400 | |
| commit | 354cf00339b12da6e685770e9e411ebe05d3e3a3 (patch) | |
| tree | 3ab8292f7ca80b22a6f159ef63f59b47baf28615 /tools/perf/scripts/python/stackcollapse.py | |
| parent | media: rc: meson-ir: update with SPDX Licence identifier (diff) | |
media: cec: mark devnode as registered before actually registering it
The cec device node can be used right after it was created, but that
leaves a race condition where the device was created, but devnode->registered
was still false. So an ioctl() would result in an error.
So set it to true before calling cdev_device_add() and to false again if
cdev_device_add returned an error.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
