Swap the last two arguments of virtio_9p_feature_negotiate's first
call to virtio_config_get. As per the function definition, the last
argument needs to actually be the length of the type.
Signed-off-by: Xingjian Zhang <zhxj9823@qq.com>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #1059
if (virtio_config_get(d->vdev,
__offsetof(struct virtio_9p_config, tag_len),
- &tag_len, 1, sizeof(tag_len)) < 0)
+ &tag_len, sizeof(tag_len), 1) < 0)
{
rc = -EAGAIN;
goto out;