Browse Source
The logic to iterate over the hottest blocks will never reach the last item in the list, as it checks `it->next != NULL` before entering the loop. It's hard to trigger this off-by-one error with the default limit=20, but it is a bug and is problematic if that default is changed to something larger. Signed-off-by: Alex Bradbury <asb@igalia.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Link: https://lore.kernel.org/qemu-devel/f1ba2e57c6126472c0c8310774009f2455efc370.1753857212.git.asb@igalia.com Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>pull/319/head
committed by
Pierrick Bouvier
1 changed files with 1 additions and 2 deletions
Loading…
Reference in new issue