The socket support was merged in an earlier branch that didn't yet have support for allocating direct descriptors, hence only open and accept got support for that. Do the one-liner to enable it now, so we have consistent support for any request that can instantiate a file/direct descriptor.
Unified · Split
| @@ -6676,8 +6676,8 @@ static int io_socket(struct io_kiocb *req, unsigned int issue_flags) · 6675 unmodified lines | ||
| 6676 | 6676 | fd_install(fd, file); |
| 6677 | 6677 | ret = fd; |
| 6678 | 6678 | } else { |
| 6679 | − ret = io_install_fixed_file(req, file, issue_flags, | |
| 6680 | − sock->file_slot - 1); | |
| 6679 | + ret = io_fixed_fd_install(req, issue_flags, file, | |
| 6680 | + sock->file_slot); | |
| 6681 | 6681 | } |
| 6682 | 6682 | __io_req_complete(req, issue_flags, ret, 0); |
| 6683 | 6683 | return 0; |