Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'v4l_for_linus' of git://linuxtv.org/mchehab/for_linus

* 'v4l_for_linus' of git://linuxtv.org/mchehab/for_linus:
[media] videodev: fix a NULL pointer dereference in v4l2_device_release()

+1 -1
+1 -1
drivers/media/video/v4l2-dev.c
··· 181 181 * TODO: In the long run all drivers that use v4l2_device should use the 182 182 * v4l2_device release callback. This check will then be unnecessary. 183 183 */ 184 - if (v4l2_dev->release == NULL) 184 + if (v4l2_dev && v4l2_dev->release == NULL) 185 185 v4l2_dev = NULL; 186 186 187 187 /* Release video_device and perform other