summaryrefslogtreecommitdiff
path: root/drivers/media/video/gspca/sonixj.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2011-09-08 08:17:39 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-09 22:28:04 +0400
commit2d04c13a507f5a01daa7422cd52250809573cfdb (patch)
tree965333495268c26193ee6f10a6b979ebe726d9a4 /drivers/media/video/gspca/sonixj.c
parent4b5d01e9f66446be0c2beebfab0463210bed315d (diff)
downloadlinux-2d04c13a507f5a01daa7422cd52250809573cfdb.tar.xz
[media] dvb-usb: improve sanity check of adap->active_fe in dvb_usb_ctrl_feed
The check for (adap->active_fe < 0) at the top of dvb_usb_ctrl_feed is a sanity check to ensure that adap->active_fe is valid. Improve that sanity check by also checking for (adap->active_fe >= adap->num_frontends_initialized) Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/sonixj.c')
0 files changed, 0 insertions, 0 deletions