aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorFelipe Pena <felipensp@gmail.com>2013-10-15 20:22:32 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-16 14:00:09 -0700
commitfdf91dae6f024c6dfee425fe754df6b1957f6c53 (patch)
tree84fc84b5f480a3e2167e856d9f905dee33b738ea /drivers/hv
parentw1: omap-hdq: remove deprecated IRQF_DISABLED (diff)
downloadlinux-dev-fdf91dae6f024c6dfee425fe754df6b1957f6c53.tar.xz
linux-dev-fdf91dae6f024c6dfee425fe754df6b1957f6c53.zip
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>
Diffstat (limited to 'drivers/hv')
-rw-r--r--drivers/hv/hv.c2
1 files changed, 1 insertions, 1 deletions
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]);