[PATCH 6.12 252/354] vdpa/mlx5: Fix incorrect error code reporting in query_virtqueues