Date: Tue, 27 Mar 2018 21:04:54 +0000 (UTC) From: Brooks Davis <brooks@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r331652 - head/sys/dev/sbni Message-ID: <201803272104.w2RL4si5073571@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brooks Date: Tue Mar 27 21:04:54 2018 New Revision: 331652 URL: https://svnweb.freebsd.org/changeset/base/331652 Log: Revert r331651 to recommit with proper commit metadata. Modified: head/sys/dev/sbni/if_sbni.c Modified: head/sys/dev/sbni/if_sbni.c ============================================================================== --- head/sys/dev/sbni/if_sbni.c Tue Mar 27 21:03:29 2018 (r331651) +++ head/sys/dev/sbni/if_sbni.c Tue Mar 27 21:04:54 2018 (r331652) @@ -1144,7 +1144,7 @@ sbni_ioctl(struct ifnet *ifp, u_long command, caddr_t flags.fixed_rxl = (sc->delta_rxl == 0); flags.fixed_rate = 1; SBNI_UNLOCK(sc); - bcopy(&flags, &ifr->ifr_ifru, sizeof(flags)); + ifr->ifr_data = *(caddr_t*) &flags; break; case SIOCGINSTATS: @@ -1163,7 +1163,7 @@ sbni_ioctl(struct ifnet *ifp, u_long command, caddr_t error = priv_check(td, PRIV_DRIVER); if (error) break; - bcopy(&ifr->ifr_ifru, &flags, sizeof(flags)); + flags = *(struct sbni_flags*)&ifr->ifr_data; SBNI_LOCK(sc); if (flags.fixed_rxl) { sc->delta_rxl = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803272104.w2RL4si5073571>