| 68 | static int read_vhost_message(struct virtio_net *dev, int sockfd, struct vhu_msg_context *ctx); |
| 69 | |
| 70 | static void |
| 71 | close_msg_fds(struct vhu_msg_context *ctx) |
| 72 | { |
| 73 | int i; |
| 74 | |
| 75 | for (i = 0; i < ctx->fd_num; i++) { |
| 76 | int fd = ctx->fds[i]; |
| 77 | |
| 78 | if (fd == -1) |
| 79 | continue; |
| 80 | |
| 81 | ctx->fds[i] = -1; |
| 82 | close(fd); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /* |
| 87 | * Ensure the expected number of FDs is received, |
no test coverage detected