From: Felipe Pena Date: Tue, 15 Oct 2013 23:22:32 +0000 (-0300) Subject: drivers: hv: Fix wrong check for synic_event_page X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fdf91dae6f024c6dfee425fe754df6b1957f6c53;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drivers: hv: Fix wrong check for synic_event_page The check for calling free_page() on hv_context.synic_event_page[cpu] is the same for hv_context.synic_message_page[cpu], like a copy-paste error. Signed-off-by: Felipe Pena Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 88f4096fa078..f0c5e07c25ec 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -304,7 +304,7 @@ err: void hv_synic_free_cpu(int cpu) { kfree(hv_context.event_dpc[cpu]); - if (hv_context.synic_message_page[cpu]) + if (hv_context.synic_event_page[cpu]) free_page((unsigned long)hv_context.synic_event_page[cpu]); if (hv_context.synic_message_page[cpu]) free_page((unsigned long)hv_context.synic_message_page[cpu]);