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:
Mark Johnston 2023-12-18 22:44:54 -05:00
parent eac3646fcd
commit d760d74dbe
1 changed files with 2 additions and 2 deletions

View File

@ -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;