diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2016-04-30 22:21:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-01 12:23:14 -0400 |
commit | d19a55d6ed5bf0ffe553df2d8bf91d054ddf2d76 (patch) | |
tree | 9f0146ea025d4d7423e7d2fa0137b92d7b4984fa /drivers/hv/hv_balloon.c | |
parent | 77c0c9735bc0ba5898e637a3a20d6bcb50e3f67d (diff) |
Drivers: hv: balloon: reset host_specified_ha_region
We set host_specified_ha_region = true on certain request but this is a
global state which stays 'true' forever. We need to reset it when we
receive a request where ha_region is not specified. I did not see any
real issues, the bug was found by code inspection.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hv_balloon.c')
-rw-r--r-- | drivers/hv/hv_balloon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 43af91362be5..df35fb7ed5df 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c | |||
@@ -1400,6 +1400,7 @@ static void balloon_onchannelcallback(void *context) | |||
1400 | * This is a normal hot-add request specifying | 1400 | * This is a normal hot-add request specifying |
1401 | * hot-add memory. | 1401 | * hot-add memory. |
1402 | */ | 1402 | */ |
1403 | dm->host_specified_ha_region = false; | ||
1403 | ha_pg_range = &ha_msg->range; | 1404 | ha_pg_range = &ha_msg->range; |
1404 | dm->ha_wrk.ha_page_range = *ha_pg_range; | 1405 | dm->ha_wrk.ha_page_range = *ha_pg_range; |
1405 | dm->ha_wrk.ha_region_range.page_range = 0; | 1406 | dm->ha_wrk.ha_region_range.page_range = 0; |