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)
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>

No differences found