diff options
| author | Ezequiel Garcia <[email protected]> | 2021-01-04 21:34:39 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-01-12 18:06:03 +0100 |
| commit | bb2216548a2b13cf2942a058b475438a7a6bb028 (patch) | |
| tree | eaa0a8c22d055277f583c3a764953b1f9461779c /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | b9dbfebb18ef2def4966eb6d10a04d0cf83d29a3 (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 <[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/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions