[Bugme-new] [Bug 4331] New: ADM1026 lands in Div by 0 fault

bugme-daemon at osdl.org bugme-daemon at osdl.org
Fri Mar 11 15:24:04 PST 2005


http://bugme.osdl.org/show_bug.cgi?id=4331

           Summary: ADM1026  lands in Div by 0 fault
    Kernel Version: 2.6.7
            Status: NEW
          Severity: normal
             Owner: khali at linux-fr.org
         Submitter: jayakrishnan.chathu at nokia.com


Distribution: Gentoo
Hardware Environment: I386
Software Environment: 2.6.7 Kernel.
Problem Description:
After the system boot if i run sensors -s then the adm1026 driver lands in div
by 0 error. 
Checking at the code i found.
data->fan_div[nr] is zero after boot, because xx_update_device function is not
called at that time. This fan_div value is used in the FAN_TO_REG macro, thus
resulting in div by zero fault. The fault text is copied below.

Modules linked in: adm1026 adm1021 ipso_h_io i2c_sensor i2c_piix4
CPU:    0
EIP:    0060:[<f88ada54>]    Not tainted
EFLAGS: 00010246   (2.6.7.IPSO-SX-3.0-DEV002)
EIP is at set_fan_min+0x70/0xcf [adm1026]
eax: 00149970   ebx: f7fd8400   ecx: 00000000   edx: 00000000
esi: f7fd8538   edi: 00000000   ebp: f7fd8400   esp: f79a5ef8
ds: 007b   es: 007b   ss: 0068
Process sensors (pid: 5176, threadinfo=f79a4000 task=f7ca7360)
Stack: f779e000 00000000 0000000a f7fd8418 f88b4aa4 f78dc5a4 00000004 f88adb20
       f7fd8418 f779e000 00000004 00000000 c021a8cd f7fd8418 f779e000 00000004
       c038a660 c018b163 f7fd843c f88b4aa4 f779e000 00000004 f7c60d28 f78dc580
Call Trace:
 [<f88adb20>] set_fan_0_min+0x27/0x2b [adm1026]
 [<c021a8cd>] dev_attr_store+0x34/0x3d
 [<c018b163>] flush_write_buffer+0x3b/0x47
 [<c018b1cc>] sysfs_write_file+0x5d/0x7c
 [<c018b16f>] sysfs_write_file+0x0/0x7c
 [<c0157e4b>] vfs_write+0xf4/0x12f
 [<c0157f2b>] sys_write+0x42/0x63
 [<c0105fe7>] syscall_call+0x7/0x

Steps to reproduce:
 After a fresh boot run sensors -s, in the sensors conf file dont set the
fan_div value.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Bugme-new mailing list