Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <felipensp@gmail.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Felipe Pena and committed by
Greg Kroah-Hartman
fdf91dae fe576a58

+1 -1
+1 -1
drivers/hv/hv.c
··· 304 304 void hv_synic_free_cpu(int cpu) 305 305 { 306 306 kfree(hv_context.event_dpc[cpu]); 307 - if (hv_context.synic_message_page[cpu]) 307 + if (hv_context.synic_event_page[cpu]) 308 308 free_page((unsigned long)hv_context.synic_event_page[cpu]); 309 309 if (hv_context.synic_message_page[cpu]) 310 310 free_page((unsigned long)hv_context.synic_message_page[cpu]);