V4L/DVB: mx2_camera: fix a race causing NULL dereference
authorBaruch Siach <baruch@tkos.co.il>
Tue, 27 Jul 2010 12:06:07 +0000 (09:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 28 Sep 2010 01:22:03 +0000 (22:22 -0300)
commit5384a12b23160e11ff949a94172051476d308b66
tree49d1d6cf9c20bcc80fe6f21b31ef19dcbf450620
parent1b376dac05058ac5c9616a507d95c19ea5ea2646
V4L/DVB: mx2_camera: fix a race causing NULL dereference

The mx25_camera_irq irq handler may get called after the camera has been
deactivated (from mx2_camera_deactivate). Detect this situation, and bail out.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mx2_camera.c