Re: [PATCH] selftests/mm: Fix memleak in migration benchmark

From: Hongfu Li

Date: Wed Jul 08 2026 - 23:04:06 EST



On 7/9/26 10:37 AM, Andrew Morton wrote:
Several early return paths in run_migration_benchmark() skip
hmm_buffer_free(), leaking the buffer. Replace with a single cleanup
label.
Thanks. Sashiko found a bug:
https://sashiko.dev/#/patchset/20260708103705.840679-1-lihongfu@xxxxxxxxxx

Thanks a lot for the reminder. I'll address it in the next revision of this patch.

Best regards,
Hongfu