drivers: hv: Fix wrong check for synic_event_page
PATCH 1/1 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 <[email protected]>
--- drivers/hv/hv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hv/hv.c +1 -1
@@ -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]);
Signature · 1 line
1.7.10.4
Quoted 9 lines
-----Original Message-----
From: Felipe Pena [mailto:[email protected]]
Sent: Tuesday, October 15, 2013 4:23 PM
To: KY Srinivasan; Haiyang Zhang
Cc: [email protected]; [email protected]; Felipe Pena
Subject: [PATCH 1/1] drivers: hv: Fix wrong check forsynic_event_page
Quoted 4 lines
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 <[email protected]>
Thanks Felipe.
Signed-off-by K. Y. Srinivasan <[email protected]>
K. Y
Quoted 20 lines
--- drivers/hv/hv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hv/hv.c +1
-1@@ -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((unsignedlong)hv_context.synic_message_page[cpu]);
--
1.7.10.4