gspca_sn9c20x: Fix NULL pointer dereference
authorHans de Goede <hdegoede@redhat.com>
Sun, 8 Jul 2012 17:41:14 +0000 (19:41 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 9 Jul 2012 20:42:29 +0000 (13:42 -0700)
commit6c6ee53c55dd0d3d9c3b42d4770bb82842d99727
tree28bd99baa077bb27e983ae02194c8eb604fa11b0
parentc5e43b83b0e2a5a24f7a2f1417e08db063b034f7
gspca_sn9c20x: Fix NULL pointer dereference

Don't call v4l2_ctrl_g_ctrl on ctrls which the model cam in question
does not have.

Reported-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
[ Taken directly, since Mauro is on vacation ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/video/gspca/sn9c20x.c