svn commit: r337912 - stable/10/sys/dev/sbni

Brooks Davis brooks at FreeBSD.org
Thu Aug 16 15:54:13 UTC 2018


Author: brooks
Date: Thu Aug 16 15:54:12 2018
New Revision: 337912
URL: https://svnweb.freebsd.org/changeset/base/337912

Log:
  MFC r337727 (rewritten due to unmerged API change in 11+):
  
  Copy out from kernel to data, not the other way around.
  
  Sponsored by:	DARPA, AFRL

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

Modified: stable/10/sys/dev/sbni/if_sbni.c
==============================================================================
--- stable/10/sys/dev/sbni/if_sbni.c	Thu Aug 16 15:44:48 2018	(r337911)
+++ stable/10/sys/dev/sbni/if_sbni.c	Thu Aug 16 15:54:12 2018	(r337912)
@@ -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->ifr_data, in_stats,
+		error = copyout(in_stats, ifr->ifr_data,
 		    sizeof(struct sbni_in_stats));
 		free(in_stats, M_DEVBUF);
 		break;


More information about the svn-src-all mailing list