path: root/tools
diff options
authorVincenzo Maffione <vmaffione@FreeBSD.org>2023-03-21 23:23:18 +0000
committerVincenzo Maffione <vmaffione@FreeBSD.org>2023-03-21 23:23:18 +0000
commite2a431a0ffb6894220bdf5d8fc2ca2d0ca316e85 (patch)
treee34f790a2a922a625093f409d94f41aa785f2bbe /tools
parent83df72e5fb253a8842693ae8135e42d0c2403540 (diff)
netmap: fix copyin/copyout of nmreq options listHEADmain
The previous code unsuccesfully attempted to report a precise error for each option in the user list. Moreover, commit 253b2ec199b broke some ctrl-api-test (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260547). With this patch we bail out as soon as an unrecoverable error is detected and we properly check for copy boundaries. EOPNOTSUPP no longer immediately returns an error, so that any other option in the list may be examined by the caller code and a precise report of the (un)supported options can be returned to the user. With this patch, all ctrl-api-test unit tests pass again. PR: 260547 Submitted by: giuseppe.lettieri@unipi.it Reviewed by: vmaffione MFC after: 14 days
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions