{
union hypercall_vpset *vpset = &this_cpu(hypercall_vpset);
struct hv_vpset *set = &vpset->set;
- size_t size;
int rc;
*set = input_params.set;
{
unsigned long offset = offsetof(typeof(input_params),
set.bank_contents);
-
- size = sizeof(*set->bank_contents) * hv_vpset_nr_banks(set);
+ size_t size = sizeof(*set->bank_contents) * hv_vpset_nr_banks(set);
if ( offsetof(typeof(*vpset), set.bank_contents[0]) + size >
sizeof(*vpset) )
input_params_gpa + offset,
size) != HVMTRANS_okay)
return -EINVAL;
-
- size += sizeof(*set);
}
- else
- size = sizeof(*set);
rc = hv_vpset_to_vpmask(set, vpmask);
if ( rc )
} input_params;
union hypercall_vpset *vpset = &this_cpu(hypercall_vpset);
struct hv_vpset *set = &vpset->set;
- size_t size;
int rc;
/* These hypercalls should never use the fast-call convention. */
{
unsigned long offset = offsetof(typeof(input_params),
set.bank_contents);
-
- size = sizeof(*set->bank_contents) * hv_vpset_nr_banks(set);
+ size_t size = sizeof(*set->bank_contents) * hv_vpset_nr_banks(set);
if ( offsetof(typeof(*vpset), set.bank_contents[0]) + size >
sizeof(*vpset) )
input_params_gpa + offset,
size) != HVMTRANS_okay)
return -EINVAL;
-
- size += sizeof(*set);
}
- else
- size = sizeof(*set);
rc = hv_vpset_to_vpmask(set, vpmask);
if ( rc )