diff options
author | Tianyu Lan <Tianyu.Lan@microsoft.com> | 2020-01-25 22:50:47 +0100 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2020-01-25 22:51:49 +0100 |
commit | d33c240d47dab4fd15123d9e73fc8810cbc6ed6a (patch) | |
tree | 05da0718dded291e2f552d9ab2441c627357cdae /drivers/input | |
parent | Linux 5.5-rc4 (diff) | |
download | linux-d33c240d47dab4fd15123d9e73fc8810cbc6ed6a.tar.xz linux-d33c240d47dab4fd15123d9e73fc8810cbc6ed6a.zip |
hv_balloon: Balloon up according to request page number
Current code has assumption that balloon request memory size aligns
with 2MB. But actually Hyper-V doesn't guarantee such alignment. When
balloon driver receives non-aligned balloon request, it produces warning
and balloon up more memory than requested in order to keep 2MB alignment.
Remove the warning and balloon up memory according to actual requested
memory size.
Fixes: f6712238471a ("hv: hv_balloon: avoid memory leak on alloc_error of 2MB memory block")
Cc: stable@vger.kernel.org
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions