aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2014-05-27 13:16:20 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-28 16:45:15 -0400
commita100d88df1e924e5c9678fabf054d1bae7ab74fb (patch)
tree5768abac03a9bca11ba5cbf6a6e4590620de4ff1 /drivers
parent4a2883ec794dee96c1702ca847a48bfe5c3ab1f0 (diff)
hv: use correct order when freeing monitor_pages
We try to free two pages when only one has been allocated. Cleanup path is unlikely, so I haven't found any trace that would fit, but I hope that free_pages_prepare() does catch it. Cc: stable@vger.kernel.org Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Reviewed-by: Amos Kong <akong@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hv/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c
index 7f10c151632a..e84f4526eb36 100644
--- a/drivers/hv/connection.c
+++ b/drivers/hv/connection.c
@@ -224,8 +224,8 @@ cleanup:
224 vmbus_connection.int_page = NULL; 224 vmbus_connection.int_page = NULL;
225 } 225 }
226 226
227 free_pages((unsigned long)vmbus_connection.monitor_pages[0], 1); 227 free_pages((unsigned long)vmbus_connection.monitor_pages[0], 0);
228 free_pages((unsigned long)vmbus_connection.monitor_pages[1], 1); 228 free_pages((unsigned long)vmbus_connection.monitor_pages[1], 0);
229 vmbus_connection.monitor_pages[0] = NULL; 229 vmbus_connection.monitor_pages[0] = NULL;
230 vmbus_connection.monitor_pages[1] = NULL; 230 vmbus_connection.monitor_pages[1] = NULL;
231 231