Date: Thu, 16 Aug 2018 15:27:19 +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-11@freebsd.org Subject: svn commit: r337909 - stable/11/sys/dev/sbni Message-ID: <201808161527.w7GFRJSw045680@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808161527.w7GFRJSw045680>