aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2019-05-10 11:15:04 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-05-22 15:33:57 -0400
commit354cf00339b12da6e685770e9e411ebe05d3e3a3 (patch)
tree3ab8292f7ca80b22a6f159ef63f59b47baf28615 /tools/perf/scripts/python/stackcollapse.py
parentmedia: 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