summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-09-20 16:14:59 +0900
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-09-20 16:14:59 +0900
commit1f6877ccef68ce9fed7625a0de384c3576b803ca (patch)
treefa787734f5c77eedcb285a74077630c23eef84f5 /rust/kernel/alloc/kvec
parent19de2f11fc5cf08c4ee572cd5abc02935a953eec (diff)
firewire: cdev: refactor copy_to_user() in get_info ioctl call
A non-zero return value from copy_to_user() is handled by returning -EFAULT. Using scoped_guard() simplifies this handling, since it eliminates the need for a local variable to store the return value and check it after the locking primitive is released. Refactor the code to remove the local variable. Link: https://lore.kernel.org/r/20260920071501.77785-4-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'rust/kernel/alloc/kvec')
0 files changed, 0 insertions, 0 deletions