aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorKieran Bingham <[email protected]>2018-11-09 09:26:10 -0500
committerMauro Carvalho Chehab <[email protected]>2018-12-05 03:13:48 -0500
commitece41454c6a5ed8f301ef1c37710ab222e577823 (patch)
tree8d6eca34fc8e00de9a68e947efe6628b9ff53695 /tools/perf/scripts/python/bin/stackcollapse-record
parent01e90464e42e51b118a95ebb0fb002af1e2e79af (diff)
media: uvcvideo: Abstract streaming object lifetime
The streaming object is a key part of handling the UVC device. Although not critical, we are currently missing a call to destroy the mutex on clean up paths, and we are due to extend the objects complexity in the near future. Facilitate easy management of a stream object by creating a pair of functions to handle creating and destroying the allocation. The new uvc_stream_delete() function also performs the missing mutex_destroy() operation. Previously a failed streaming object allocation would cause uvc_parse_streaming() to return -EINVAL, which is inappropriate. If the constructor failes, we will instead return -ENOMEM. While we're here, fix the trivial spelling error in the function banner of uvc_delete(). Signed-off-by: Kieran Bingham <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions