git: f765ef3aabcd - stable/13 - ieee80211: Check for copyout() errors in the SIOCG80211STATS handler
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Dec 2023 03:11:16 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f765ef3aabcdfd69cb4501422906f0b30bc7de51 commit f765ef3aabcdfd69cb4501422906f0b30bc7de51 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-12-19 03:44:54 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-12-28 03:01:26 +0000 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 (cherry picked from commit d760d74dbed81638979e662130e24111b3a5db0d) --- sys/net80211/ieee80211_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 35cfb139dd63..941338f2dc40 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -3635,8 +3635,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;