[PATCH 6.17 380/507] vdpa/mlx5: Fix incorrect error code reporting in query_virtqueues