aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ixl/ixl_pf_main.c
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/ixl/ixl_pf_main.c
parentf97f15e44cc9cb01f12d1d669c34b2a177999692 (diff)
downloadsrc-541d96aaaf46cde0f4247c226ed29d635b1915c4.tar.gz
src-541d96aaaf46cde0f4247c226ed29d635b1915c4.zip
Use an accessor function to access ifr_data.
This fixes 32-bit compat (no ioctl command defintions are required as struct ifreq is the same size). This is believed to be sufficent to fully support ifconfig on 32-bit systems. Reviewed by: kib Obtained from: CheriBSD MFC after: 1 week Relnotes: yes Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14900
Notes
Notes: svn path=/head/; revision=331797
Diffstat (limited to 'sys/dev/ixl/ixl_pf_main.c')
-rw-r--r--sys/dev/ixl/ixl_pf_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ixl/ixl_pf_main.c b/sys/dev/ixl/ixl_pf_main.c
index fa271d434ec4..a5b312d0a73c 100644
--- a/sys/dev/ixl/ixl_pf_main.c
+++ b/sys/dev/ixl/ixl_pf_main.c
@@ -5174,7 +5174,7 @@ ixl_ioctl(struct ifnet * ifp, u_long command, caddr_t data)
if (!pf->has_i2c)
return (ENOTTY);
- error = copyin(ifr->ifr_data, &i2c, sizeof(i2c));
+ error = copyin(ifr_data_get_ptr(ifr), &i2c, sizeof(i2c));
if (error != 0)
break;
if (i2c.dev_addr != 0xA0 && i2c.dev_addr != 0xA2) {
@@ -5191,7 +5191,7 @@ ixl_ioctl(struct ifnet * ifp, u_long command, caddr_t data)
i2c.dev_addr, &i2c.data[i]))
return (EIO);
- error = copyout(&i2c, ifr->ifr_data, sizeof(i2c));
+ error = copyout(&i2c, ifr_data_get_ptr(ifr), sizeof(i2c));
break;
}
#endif