]> git.karo-electronics.de Git - linux-beck.git/commit
V4L/DVB: ds3000: fix divide-by-zero error in ds3000_read_snr()
authorNicolas Noirbent <nicolas.noirbent@smartjog.com>
Mon, 22 Mar 2010 17:54:43 +0000 (14:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:15 +0000 (12:57 -0300)
commit450df22286eee7431b34644410aeff18936c7afe
tree6e9e8925811ee4e895f94aba45e9b3a7914b1a20
parentb4bc3dcbefc0a359744ab13bc8b67c6cb5cd0086
V4L/DVB: ds3000: fix divide-by-zero error in ds3000_read_snr()

Fix a divide-by-zero error in ds3000's ds3000_read_snr(), when getting
a very low signal reading (dvbs2_signal_reading >= 1). This prevents
some nasty EIPs when running szap-s2 with a very low signal strength.

Signed-off-by: Nicolas Noirbent <nicolas.noirbent@smartjog.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/ds3000.c