On 11/4/19 10:46, Seung-Woo Kim wrote: > When driver is built as module and probe during insmod is deferred > because of sensor subdevs, there is NULL pointer deference because > mdev is cleaned up and then access it from v4l2_device_unregister(). > Fix the wrong mdev and v4l2 dev odder in error path of probe. > Signed-off-by: Seung-Woo Kim <sw0312.kim@xxxxxxxxxxx> Reviewed-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> I think also Fixes: ("9832e155f1ed [media] media-device: split media initialization and registration") could be added.