[Bugme-new] [Bug 13445] New: division by zero
bugzilla-daemon at bugzilla.kernel.org
bugzilla-daemon at bugzilla.kernel.org
Wed Jun 3 12:28:15 PDT 2009
http://bugzilla.kernel.org/show_bug.cgi?id=13445
Summary: division by zero
Product: Other
Version: 2.5
Kernel Version: 2.6.29.3
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Other
AssignedTo: other_other at kernel-bugs.osdl.org
ReportedBy: ettl.martin at gmx.de
Regression: No
Hi,
i detected a few division by zeros in
file:linux-2.6.29.3/sound/soc/codecs/tlv320aic23.c
This is deteted with the static code analyis tool cppcheck. Cppcheck prints the
following output:
[linux-2.6.29.3/sound/soc/codecs/tlv320aic23.c:296]: (error) Division by zero
[linux-2.6.29.3/sound/soc/codecs/tlv320aic23.c:297]: (error) Division by zero
[linux-2.6.29.3/sound/soc/codecs/tlv320aic23.c:300]: (error) Division by zero
[linux-2.6.29.3/sound/soc/codecs/tlv320aic23.c:301]: (error) Division by zero
Take a loop at the code tlv320aic23.c at line 296:
#define SR_MULT (11*12)
#define A(x) (x) ? (SR_MULT/x) : 0
static const unsigned char sr_adc_mult_table[] = {
A(2), A(2), A(12), A(12), A(0), A(0), A(3), A(1),
A(2), A(2), A(11), A(11), A(0), A(0), A(0), A(1)
};
indeed, there is a division by zero! At the lines 297, 300 and 301 happens the
same!
Best regards
Ettl Martin
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Bugme-new
mailing list