File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -272,15 +272,15 @@ static void hv_kmsg_dump_unregister(void)
272
272
atomic_notifier_chain_unregister (& panic_notifier_list ,
273
273
& hyperv_panic_report_block );
274
274
275
- hv_free_hyperv_page (hv_panic_page );
275
+ kfree (hv_panic_page );
276
276
hv_panic_page = NULL ;
277
277
}
278
278
279
279
static void hv_kmsg_dump_register (void )
280
280
{
281
281
int ret ;
282
282
283
- hv_panic_page = hv_alloc_hyperv_zeroed_page ( );
283
+ hv_panic_page = kzalloc ( HV_HYP_PAGE_SIZE , GFP_KERNEL );
284
284
if (!hv_panic_page ) {
285
285
pr_err ("Hyper-V: panic message page memory allocation failed\n" );
286
286
return ;
@@ -289,7 +289,7 @@ static void hv_kmsg_dump_register(void)
289
289
ret = kmsg_dump_register (& hv_kmsg_dumper );
290
290
if (ret ) {
291
291
pr_err ("Hyper-V: kmsg dump register error 0x%x\n" , ret );
292
- hv_free_hyperv_page (hv_panic_page );
292
+ kfree (hv_panic_page );
293
293
hv_panic_page = NULL ;
294
294
}
295
295
}
You can’t perform that action at this time.
0 commit comments