]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: SCO: convert to getsockopt_iter
authorBreno Leitao <leitao@debian.org>
Tue, 12 May 2026 11:12:21 +0000 (04:12 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 11 Jun 2026 18:24:39 +0000 (14:24 -0400)
commit255f8d39aa71240922f8264d9158b7f68c7528bc
tree838987eaab347adb3177605d71921a6c4713d6d5
parentbf01627cc04b70c04a6d68eda06f836fed3078bc
Bluetooth: SCO: convert to getsockopt_iter

Convert SCO 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()
- Drop the open-coded ptr cursor in BT_CODEC; iter_out advances on
  every copy_to_iter() naturally
- Add linux/uio.h for copy_to_iter()

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/sco.c