aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSakari Ailus <[email protected]>2016-08-11 07:18:37 -0300
committerMauro Carvalho Chehab <[email protected]>2016-08-24 16:47:24 -0300
commitfc49071766ed371268cc03b868cf97f21ad3f273 (patch)
tree1325d101809ddb8b063f2dcb2d829fa4deb7a290 /tools/perf/scripts/python
parent6a21b728732390deb75536dd9253d958ca9223d0 (diff)
[media] v4l: Do not allow re-registering sub-devices
Albeit not prohibited explicitly, re-registering sub-devices generated a big, loud warning which quite likely soon was followed by a crash. What followed was re-initialising a media entity, driver's registered() callback being called and re-adding a list entry to a list. Prevent this by returning an error if a sub-device is already registered. [[email protected]: reorder logic to check if !sd before dereferencing it] Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions