]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drivers: hv: Fix wrong check for synic_event_page
authorFelipe Pena <felipensp@gmail.com>
Tue, 15 Oct 2013 23:22:32 +0000 (20:22 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Oct 2013 21:00:09 +0000 (14:00 -0700)
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>
drivers/hv/hv.c

index 88f4096fa078d7f4e2ae1eeee41fd7188ab1a313..f0c5e07c25ec9f88d4bc0cee66a990da77f3636e 100644 (file)
@@ -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]);