Dan Carpenter 3806b45ba4 hwmon: Prevent some divide by zeros in FAN_TO_REG()
The "rpm * div" operations can overflow here, so this patch adds an
upper limit to rpm to prevent that.  Jean Delvare helped me with this
patch.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Roger Lucas <vt8231@hiddenengine.co.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2013-12-12 08:05:33 +01:00
..
2013-10-18 09:12:02 -07:00
2013-10-18 09:12:02 -07:00
2013-10-13 16:16:25 -07:00
2013-08-11 22:10:39 -07:00
2013-08-27 08:28:01 -07:00
2013-10-13 16:16:25 -07:00
2013-11-27 01:03:27 +01:00
2013-08-11 22:10:39 -07:00
2013-09-11 13:01:31 -07:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2012-11-28 11:50:34 -08:00
2013-08-27 08:28:01 -07:00
2013-09-11 13:01:32 -07:00
2013-08-27 08:28:01 -07:00
2013-06-27 10:29:03 -07:00
2013-08-11 22:10:39 -07:00
2013-10-18 09:12:01 -07:00
2013-03-18 21:19:49 +01:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:56 +02:00
2013-08-11 22:10:39 -07:00
2013-10-18 09:12:02 -07:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2013-08-11 22:10:39 -07:00
2013-09-11 13:01:41 -07:00
2012-11-28 11:50:34 -08:00
2013-08-11 22:10:39 -07:00
2013-10-18 09:12:02 -07:00
2013-10-18 09:12:02 -07:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00