We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deefa7f commit 910d2f1Copy full SHA for 910d2f1
kernel/pid.c
@@ -636,19 +636,8 @@ static int pidfd_getfd(struct pid *pid, int fd)
636
if (IS_ERR(file))
637
return PTR_ERR(file);
638
639
- ret = security_file_receive(file);
640
- if (ret) {
641
- fput(file);
642
- return ret;
643
- }
644
-
645
- ret = get_unused_fd_flags(O_CLOEXEC);
646
- if (ret < 0) {
647
648
- } else {
649
- __receive_sock(file);
650
- fd_install(ret, file);
651
+ ret = receive_fd(file, O_CLOEXEC);
+ fput(file);
652
653
return ret;
654
}
0 commit comments