svn commit: r337727 - head/sys/dev/sbni

Brooks Davis brooks at FreeBSD.org
Mon Aug 13 21:53:19 UTC 2018


Author: brooks
Date: Mon Aug 13 21:53:18 2018
New Revision: 337727
URL: https://svnweb.freebsd.org/changeset/base/337727

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

Modified:
  head/sys/dev/sbni/if_sbni.c

Modified: head/sys/dev/sbni/if_sbni.c
==============================================================================
--- head/sys/dev/sbni/if_sbni.c	Mon Aug 13 20:29:39 2018	(r337726)
+++ head/sys/dev/sbni/if_sbni.c	Mon Aug 13 21:53:18 2018	(r337727)
@@ -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