|
@@ -101,9 +101,13 @@ static int hv_cpu_init(unsigned int cpu)
|
|
|
u64 msr_vp_index;
|
|
u64 msr_vp_index;
|
|
|
struct hv_vp_assist_page **hvp = &hv_vp_assist_page[smp_processor_id()];
|
|
struct hv_vp_assist_page **hvp = &hv_vp_assist_page[smp_processor_id()];
|
|
|
void **input_arg;
|
|
void **input_arg;
|
|
|
|
|
+ struct page *pg;
|
|
|
|
|
|
|
|
input_arg = (void **)this_cpu_ptr(hyperv_pcpu_input_arg);
|
|
input_arg = (void **)this_cpu_ptr(hyperv_pcpu_input_arg);
|
|
|
- *input_arg = page_address(alloc_page(GFP_KERNEL));
|
|
|
|
|
|
|
+ pg = alloc_page(GFP_KERNEL);
|
|
|
|
|
+ if (unlikely(!pg))
|
|
|
|
|
+ return -ENOMEM;
|
|
|
|
|
+ *input_arg = page_address(pg);
|
|
|
|
|
|
|
|
hv_get_vp_index(msr_vp_index);
|
|
hv_get_vp_index(msr_vp_index);
|
|
|
|
|
|