···181181 * TODO: In the long run all drivers that use v4l2_device should use the182182 * v4l2_device release callback. This check will then be unnecessary.183183 */184184- if (v4l2_dev->release == NULL)184184+ if (v4l2_dev && v4l2_dev->release == NULL)185185 v4l2_dev = NULL;186186187187 /* Release video_device and perform other