Ticket #1851

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> anybody see how to get a divide by zero in 2.6 adm1026 set_fan_1_min()
> ??? It looks fine to me...
> 
> <http://secure.netroedge.com/~lm78/readticket.cgi?ticket=1851>

Easy. Try setting fan1_min or fan1_div before ever *reading* from the
sysfs files. The update fonction not having been called, fan_div[0] is
equal to 0.

Justin, can you confirm and provide a patch to fix the issue?

I also wonder if the 2.4 driver has the same problem. I would say it
does, but the ticket specifically names the 2.6 version.

-- 
Jean Delvare
http://khali.linux-fr.org/



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux