]> git.ipfire.org Git - thirdparty/linux.git/commit
x25: convert to getsockopt_iter
authorBreno Leitao <leitao@debian.org>
Thu, 7 May 2026 10:57:52 +0000 (03:57 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sun, 10 May 2026 17:11:08 +0000 (10:11 -0700)
commit447edcb0e4be5d2ea26bc2e8439a6cf9adb8ebe5
tree4a120f116588f20c6700f20ca81218fe5c03c037
parente0a917bca147d3da2641745892d028a0790c1c4f
x25: convert to getsockopt_iter

Convert X.25 socket's getsockopt implementation to use the new
getsockopt_iter callback with sockopt_t.

Key changes:
- Replace (char __user *optval, int __user *optlen) with sockopt_t *opt
- Use opt->optlen for buffer length (input) and returned size (output)
- Use copy_to_iter() instead of put_user()/copy_to_user()
- Add linux/uio.h for copy_to_iter()

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20260507-getsock_two-v2-3-5873111d9c12@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/x25/af_x25.c