summaryrefslogtreecommitdiff
path: root/drivers/xen/acpi.c
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@citrix.com>2020-07-27 12:13:39 +0300
committerJuergen Gross <jgross@suse.com>2020-08-03 09:14:01 +0300
commit1951fa33ec259abdf3497bfee7b63e7ddbb1a394 (patch)
tree6289dd4407134ea8e8a09da5061b93bdbbee58c9 /drivers/xen/acpi.c
parent4e722d4fe27899f90491065edb0bb0a757f0b955 (diff)
downloadlinux-1951fa33ec259abdf3497bfee7b63e7ddbb1a394.tar.xz
xen/balloon: fix accounting in alloc_xenballooned_pages error path
target_unpopulated is incremented with nr_pages at the start of the function, but the call to free_xenballooned_pages will only subtract pgno number of pages, and thus the rest need to be subtracted before returning or else accounting will be skewed. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Juergen Gross <jgross@suse.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20200727091342.52325-2-roger.pau@citrix.com Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/xen/acpi.c')
0 files changed, 0 insertions, 0 deletions