Copy out from kernel to data, not the other way around.
MFC after: 3 days Sponsored by: DARPA, AFRL
This commit is contained in:
parent
73ed47f04f
commit
8f4dfca127
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337727
@ -1153,7 +1153,7 @@ sbni_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user