summaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2014-05-27 19:16:20 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-28 13:45:15 -0700
commita100d88df1e924e5c9678fabf054d1bae7ab74fb (patch)
tree5768abac03a9bca11ba5cbf6a6e4590620de4ff1 /drivers/hv
parent4a2883ec794dee96c1702ca847a48bfe5c3ab1f0 (diff)
downloadblackbird-op-linux-a100d88df1e924e5c9678fabf054d1bae7ab74fb.tar.gz
blackbird-op-linux-a100d88df1e924e5c9678fabf054d1bae7ab74fb.zip
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/hv')
-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:
vmbus_connection.int_page = NULL;
}
- free_pages((unsigned long)vmbus_connection.monitor_pages[0], 1);
- free_pages((unsigned long)vmbus_connection.monitor_pages[1], 1);
+ free_pages((unsigned long)vmbus_connection.monitor_pages[0], 0);
+ free_pages((unsigned long)vmbus_connection.monitor_pages[1], 0);
vmbus_connection.monitor_pages[0] = NULL;
vmbus_connection.monitor_pages[1] = NULL;
OpenPOWER on IntegriCloud