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: [email protected]
          Reporter: [email protected]

[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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to