ieee80211: Check for copyout() errors in the SIOCG80211STATS handler
In preparation for annotating copyin() and related functions with __result_use_check. Reviewed by: bz, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43095
This commit is contained in:
parent
eac3646fcd
commit
d760d74dbe
|
@ -3636,8 +3636,8 @@ ieee80211_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
|||
break;
|
||||
case SIOCG80211STATS:
|
||||
ifr = (struct ifreq *)data;
|
||||
copyout(&vap->iv_stats, ifr_data_get_ptr(ifr),
|
||||
sizeof (vap->iv_stats));
|
||||
error = copyout(&vap->iv_stats, ifr_data_get_ptr(ifr),
|
||||
sizeof(vap->iv_stats));
|
||||
break;
|
||||
case SIOCSIFMTU:
|
||||
ifr = (struct ifreq *)data;
|
||||
|
|
Loading…
Reference in New Issue