aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorEzequiel Garcia <[email protected]>2021-01-04 21:34:40 +0100
committerMauro Carvalho Chehab <[email protected]>2021-01-12 18:07:02 +0100
commit89b14485caa4b7b2eaf70be0064f0978e68ebeee (patch)
tree2aa2a80ba06629e428c8010340740f5a027a0e6d /tools/perf/scripts/python/flamegraph.py
parentbb2216548a2b13cf2942a058b475438a7a6bb028 (diff)
media: imx: Fix csc/scaler unregister
The csc/scaler device private struct is released by ipu_csc_scaler_video_device_release(), which can be called by video_unregister_device() if there are no users of the underlying struct video device. Therefore, the mutex can't be held when calling video_unregister_device() as its memory may be freed by it, leading to a kernel oops. Fortunately, the fix is quite simple as no locking is needed when calling video_unregister_device(): v4l2-core already has its own internal locking, and the structures are also properly refcounted. Fixes: a8ef0488cc59 ("media: imx: add csc/scaler mem2mem device") Signed-off-by: Ezequiel Garcia <[email protected]> Reviewed-by: Philipp Zabel <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions