Date: Thu, 16 Aug 2018 15:54:12 +0000 (UTC) From: Brooks Davis <brooks@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r337912 - stable/10/sys/dev/sbni Message-ID: <201808161554.w7GFsCGq061173@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808161554.w7GFsCGq061173>