commit | e58fced201ad6e6cb673f07499919c3b20792d94 | [log] [tgz] |
---|---|---|
author | Antonio Ospite <ospite@studenti.unina.it> | Wed Oct 12 17:59:26 2011 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Wed Oct 19 09:48:08 2011 -0200 |
tree | 7db4aac4f1380e15a8c0442e74634db99ef39636 | |
parent | 899e3ee404961a90b828ad527573aaaac39f0ab1 [diff] |
[media] videodev: fix a NULL pointer dereference in v4l2_device_release() The change in 8280b66 does not cover the case when v4l2_dev is already NULL, fix that. With a Kinect sensor, seen as an USB camera using GSPCA in this context, a NULL pointer dereference BUG can be triggered by just unplugging the device after the camera driver has been loaded. Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>