From: Laurent Pinchart Date: Sun, 25 Apr 2010 19:27:14 +0000 (-0300) Subject: V4L/DVB: uvcvideo: Prevent division by 0 when control step value is 0 X-Git-Tag: v2.6.35-rc1~480^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf7a50eeb6f462a0b7d1619fcb27a727a2981769;p=pandora-kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed