]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux(4): Add a helper to copyout getsockopt value
authorDmitry Chagin <dchagin@FreeBSD.org>
Sat, 28 May 2022 20:30:22 +0000 (23:30 +0300)
committerDmitry Chagin <dchagin@FreeBSD.org>
Fri, 17 Jun 2022 19:35:32 +0000 (22:35 +0300)
commitd573cf010ead8d66c72fb8544ceee151128b5bf5
treedff36a4e82b9ef5c0ca00f010ac2ecb2cf4d4bae
parentccdf2cd4237d5b5a3cb951382c576fbf5d68dcdc
linux(4): Add a helper to copyout getsockopt value

For getsockopt(), optlen is a value-result argument, which is modified
on return to indicate the actual size of the value returned.
For some cases this was missed, fixed.

MFC after: 2 weeks

(cherry picked from commit e92b9a9eaa646bc1037af2a838270c43ea607d55)
sys/compat/linux/linux_socket.c