[Bug 201593] usr/src/sys/dev/iicbus/max6690.c:372: poor error checking ?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jul 15 16:26:35 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201593
Bug ID: 201593
Summary: usr/src/sys/dev/iicbus/max6690.c:372: poor error
checking ?
Product: Base System
Version: 10.2-BETA1
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: freebsd-bugs at FreeBSD.org
Reporter: dcb314 at hotmail.com
[usr/src/sys/dev/iicbus/max6690.c:372]: (style) Checking if unsigned variable
'temp' is less than zero.
Source code is
temp = max6690_sensor_read(sens);
if (temp < 0)
return (EIO);
Function max6690_sensor_read has an int return value, which should be sanity
checked >= 0, before writing into unsigned variable temp.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list