diff options
author | Felipe Pena <felipensp@gmail.com> | 2013-10-15 20:22:32 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-16 14:00:09 -0700 |
commit | fdf91dae6f024c6dfee425fe754df6b1957f6c53 (patch) | |
tree | 84fc84b5f480a3e2167e856d9f905dee33b738ea /drivers/hv/hv.c | |
parent | fe576a580f2a62c43bb81b18700576a66b332c8f (diff) | |
download | op-kernel-dev-fdf91dae6f024c6dfee425fe754df6b1957f6c53.zip op-kernel-dev-fdf91dae6f024c6dfee425fe754df6b1957f6c53.tar.gz |
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/hv.c')
-rw-r--r-- | drivers/hv/hv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 88f4096..f0c5e07 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]); |