RE: [PATCH V3 2/6] x86/Hyper-V: Free hv_panic_page when fail to register kmsg dump
From: Michael Kelley
Date: Wed Mar 25 2020 - 14:30:13 EST
From: Tianyu Lan <Tianyu.Lan@xxxxxxxxxxxxx> Sent: Tuesday, March 24, 2020 12:57 AM
>
> If kmsg_dump_register() fails, hv_panic_page will not be used
> anywhere. So free and reset it.
>
> Signed-off-by: Tianyu Lan <Tianyu.Lan@xxxxxxxxxxxxx>
> ---
> Change since v1:
> - Update commit log
> - Remove hv_free_hyperv_page() in the error path
> ---
> drivers/hv/vmbus_drv.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
Reviewed-by: Michael Kelley <mikelley@xxxxxxxxxxxxx>