History

Merge tag 'pull-stable-struct_fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull 'struct fd' updates from Al Viro: "Just the 'struct fd' layout change, with conversion to accessor helpers" * tag 'pull-stable-struct_fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: add struct fd constructors, get rid of __to_fd() struct fd: representation change introduce fd_file(), convert all accessors to it.

Linus Torvalds committed 2 years ago

Commit f8ffbc32 parents f8eb5bd de12c3383 files · +562 −559Browse files

Showing the changes to kernel/module (1 of 83 files). Show all

Unified · Split

kernel/module/main.c+1−1
@@ -3234,7 +3234,7 @@ SYSCALL_DEFINE3(finit_module, int, fd, const char __user *, uargs, int, flags) · 3233 unmodified lines
3234 return -EINVAL;3234 return -EINVAL;
3235 3235
3236 f = fdget(fd);3236 f = fdget(fd);
3237 err = idempotent_init_module(f.file, uargs, flags);3237 err = idempotent_init_module(fd_file(f), uargs, flags);
3238 fdput(f);3238 fdput(f);
3239 return err;3239 return err;
3240}3240}