aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2019-05-10 11:15:04 -0400
committerMauro Carvalho Chehab <[email protected]>2019-05-22 15:33:57 -0400
commit354cf00339b12da6e685770e9e411ebe05d3e3a3 (patch)
tree3ab8292f7ca80b22a6f159ef63f59b47baf28615 /tools/perf/scripts/python/export-to-sqlite.py
parent9390467c2d3bd19778ec23b39dde5424151ec37d (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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions