aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mwl
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2018-03-30 18:50:13 +0000
committerBrooks Davis <brooks@FreeBSD.org>2018-03-30 18:50:13 +0000
commit541d96aaaf46cde0f4247c226ed29d635b1915c4 (patch)
tree77ba4e72595522d17384cbc380199ab6fb4392a9 /sys/dev/mwl
parentf97f15e44cc9cb01f12d1d669c34b2a177999692 (diff)
Notes
Diffstat (limited to 'sys/dev/mwl')
-rw-r--r--sys/dev/mwl/if_mwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mwl/if_mwl.c b/sys/dev/mwl/if_mwl.c
index e1ec18294081..b54dc7e8cb58 100644
--- a/sys/dev/mwl/if_mwl.c
+++ b/sys/dev/mwl/if_mwl.c
@@ -4750,8 +4750,8 @@ mwl_ioctl(struct ieee80211com *ic, u_long cmd, void *data)
* statistics. The alternative is to copy the data
* to a local structure.
*/
- return (copyout(&sc->sc_stats,
- ifr->ifr_data, sizeof (sc->sc_stats)));
+ return (copyout(&sc->sc_stats, ifr_data_get_ptr(ifr),
+ sizeof (sc->sc_stats)));
#ifdef MWL_DIAGAPI
case SIOCGMVDIAG:
/* XXX check privs */