[Bug 231567] [patch] led.c, set_led() always succeed even when it fails

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Sep 21 23:20:35 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231567

            Bug ID: 231567
           Summary: [patch] led.c, set_led() always succeed even when it
                    fails
           Product: Base System
           Version: 11.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: bsdpr at phoe.frmug.org

Created attachment 197324
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=197324&action=edit
Return the proper error status to the caller

The return value of set_led() in sys/dev/led/ is always zero even a failure
ocurr. The attached patch return the error code to the caller when an error
occurs.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list