hv: use correct order when freeing monitor_pages
authorRadim Krčmář <rkrcmar@redhat.com>
Tue, 27 May 2014 17:16:20 +0000 (19:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 20:45:15 +0000 (13:45 -0700)
commita100d88df1e924e5c9678fabf054d1bae7ab74fb
tree5768abac03a9bca11ba5cbf6a6e4590620de4ff1
parent4a2883ec794dee96c1702ca847a48bfe5c3ab1f0
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>
drivers/hv/connection.c