On Mon, 2021-01-04 at 17:34 -0300, Ezequiel Garcia wrote: > 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@xxxxxxxxxxxxx> Reviewed-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> regards Philipp