aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@collabora.com>2021-01-04 21:34:39 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-12 18:06:03 +0100
commitbb2216548a2b13cf2942a058b475438a7a6bb028 (patch)
treeeaa0a8c22d055277f583c3a764953b1f9461779c /tools/perf/scripts/python/event_analyzing_sample.py
parentmedia: staging: media: imx: Kconfig: support VIDEO_IMX7_CSI for imx8m (diff)
media: imx: Unregister csc/scaler only if registered
The csc/scaler device pointer (imxmd->m2m_vdev) is assigned after the imx media device v4l2-async probe completes, therefore we need to check if the device is non-NULL before trying to unregister it. This can be the case if the non-completed imx media device is unbinded (or the driver is removed), leading to a kernel oops. Fixes: a8ef0488cc59 ("media: imx: add csc/scaler mem2mem device") Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions