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;
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to