Author: np
Date: Mon Nov 23 23:58:14 2020
New Revision: 367966
URL: https://svnweb.freebsd.org/changeset/base/367966

Log:
  MFC r366694:
  
  cxgbe(4): unimplemented cudbg routines should return the correct
  internal error code and not an errno.
  
  Submitted by: Krishnamraju Eraparaju @ Chelsio
  Sponsored by: Chelsio Communications

Modified:
  stable/12/sys/dev/cxgbe/cudbg/cudbg_lib.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/cudbg/cudbg_lib.c
==============================================================================
--- stable/12/sys/dev/cxgbe/cudbg/cudbg_lib.c   Mon Nov 23 23:53:21 2020        
(r367965)
+++ stable/12/sys/dev/cxgbe/cudbg/cudbg_lib.c   Mon Nov 23 23:58:14 2020        
(r367966)
@@ -2027,7 +2027,7 @@ err1:
 err:
        return rc;
 #endif
-       return (EDOOFUS);
+       return (CUDBG_STATUS_NOT_IMPLEMENTED);
 }
 /* CIM OBQ */
 
@@ -2664,7 +2664,7 @@ err1:
 err:
        return rc;
 #endif
-       return (EDOOFUS);
+       return (CUDBG_STATUS_NOT_IMPLEMENTED);
 }
 
 static void collect_mem_info(struct cudbg_init *pdbg_init,
@@ -3130,7 +3130,7 @@ err1:
 err:
        return rc;
 #endif
-       return (EDOOFUS);
+       return (CUDBG_STATUS_NOT_IMPLEMENTED);
 }
 
 static int collect_pbt_tables(struct cudbg_init *pdbg_init,
@@ -4450,5 +4450,5 @@ err1:
 err:
        return rc;
 #endif
-       return (EDOOFUS);
+       return (CUDBG_STATUS_NOT_IMPLEMENTED);
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to