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>
Thu, 26 Jun 2014 19:15:41 +0000 (15:15 -0400)
commitfd81b2dc6f499f8a572363bedfac5ead050842e2
tree0bbe00377c06f6597c06d890a3dc6c6371bd52fc
parentbdfbec3be201afa519e98b49984997dd2d4a509f
hv: use correct order when freeing monitor_pages

commit a100d88df1e924e5c9678fabf054d1bae7ab74fb upstream.

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.

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