summaryrefslogtreecommitdiffstats
path: root/drivers/base/sys.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-04-25 16:27:14 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 12:58:44 -0300
commitcf7a50eeb6f462a0b7d1619fcb27a727a2981769 (patch)
treeae71d7dfc5af77429f9d881d59ab98f08353c170 /drivers/base/sys.c
parenta90ef69c1f67319ddbba0170767c660c7fb5d4c9 (diff)
downloadlinux-stable-cf7a50eeb6f462a0b7d1619fcb27a727a2981769.tar.gz
linux-stable-cf7a50eeb6f462a0b7d1619fcb27a727a2981769.tar.bz2
linux-stable-cf7a50eeb6f462a0b7d1619fcb27a727a2981769.zip
V4L/DVB: uvcvideo: Prevent division by 0 when control step value is 0
The control step values reported by the device are used as a divisor unchecked, which can result in a division by zero. Check the step value and make it 1 when null. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/base/sys.c')
0 files changed, 0 insertions, 0 deletions