From: Dan Carpenter Date: Tue, 11 Sep 2012 10:11:24 +0000 (-0300) Subject: [media] rc: divide by zero bugs in s_tx_carrier() X-Git-Tag: v3.7-rc1~38^2^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48cafec9a941c2dfe94d76642662bc20bf87fe08;p=pandora-kernel.git [media] rc: divide by zero bugs in s_tx_carrier() "carrier" comes from a get_user() in ir_lirc_ioctl(). We need to test that it's not zero before using it as a divisor. It might have been nice to test for this ir_lirc_ioctl() but the mceusb driver uses zero to disable carrier modulation. The bug in redrat3 is a little more subtle. The ->carrier is passed to mod_freq_to_val() which uses it as a divisor. Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed