vmw_balloon: fix inflation with batching
authorNadav Amit <namit@vmware.com>
Tue, 3 Jul 2018 02:27:13 +0000 (19:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 10:58:23 +0000 (12:58 +0200)
commit90d72ce079791399ac255c75728f3c9e747b093d
tree5ea179097f88f05b702d817ee758673fb36dade8
parent7daf201d7fe8334e2d2364d4e8ed3394ec9af819
vmw_balloon: fix inflation with batching

Embarrassingly, the recent fix introduced worse problem than it solved,
causing the balloon not to inflate. The VM informed the hypervisor that
the pages for lock/unlock are sitting in the wrong address, as it used
the page that is used the uninitialized page variable.

Fixes: b23220fe054e9 ("vmw_balloon: fixing double free when batching mode is off")
Cc: stable@vger.kernel.org
Reviewed-by: Xavier Deguillard <xdeguillard@vmware.com>
Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_balloon.c