svn commit: r337909 - stable/11/sys/dev/sbni

Brooks Davis brooks at FreeBSD.org
Thu Aug 16 15:27:20 UTC 2018


Author: brooks
Date: Thu Aug 16 15:27:19 2018
New Revision: 337909
URL: https://svnweb.freebsd.org/changeset/base/337909

Log:
  MFC r337727:
  
  Copy out from kernel to data, not the other way around.
  
  Sponsored by:	DARPA, AFRL

Modified:
  stable/11/sys/dev/sbni/if_sbni.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/sbni/if_sbni.c
==============================================================================
--- stable/11/sys/dev/sbni/if_sbni.c	Thu Aug 16 15:17:22 2018	(r337908)
+++ stable/11/sys/dev/sbni/if_sbni.c	Thu Aug 16 15:27:19 2018	(r337909)
@@ -1153,7 +1153,7 @@ sbni_ioctl(struct ifnet *ifp, u_long command, caddr_t 
 		SBNI_LOCK(sc);
 		bcopy(&sc->in_stats, in_stats, sizeof(struct sbni_in_stats));
 		SBNI_UNLOCK(sc);
-		error = copyout(ifr_data_get_ptr(ifr), in_stats,
+		error = copyout(in_stats, ifr_data_get_ptr(ifr),
 		    sizeof(struct sbni_in_stats));
 		free(in_stats, M_DEVBUF);
 		break;


More information about the svn-src-all mailing list