diff options
author | Roger Pau Monne <[email protected]> | 2020-07-27 11:13:39 +0200 |
---|---|---|
committer | Juergen Gross <[email protected]> | 2020-08-03 08:14:01 +0200 |
commit | 1951fa33ec259abdf3497bfee7b63e7ddbb1a394 (patch) | |
tree | 6289dd4407134ea8e8a09da5061b93bdbbee58c9 /lib/test_overflow.c | |
parent | 4e722d4fe27899f90491065edb0bb0a757f0b955 (diff) |
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é <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions