Files
linux-stable-mirror/lib
Hao Ge 8f7275c174 lib/test_hmm: fix memory leak in dmirror_migrate_to_system()
Move the kvcalloc() calls after the early return checks to avoid leaking
src_pfns and dst_pfns when end < start or mmget_not_zero() fails.

Link: https://lore.kernel.org/20260528011336.20797-1-hao.ge@linux.dev
Fixes: 775465fd26 ("lib/test_hmm: add zone device private THP test infrastructure")
Signed-off-by: Hao Ge <hao.ge@linux.dev>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Reported-by: Sashiko <sashiko-bot@kernel.org>
Reviewed-by: Balbir Singh <balbirs@nvidia.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-06-08 18:21:27 -07:00
..
2026-04-02 23:36:22 -07:00
2026-03-05 22:16:08 -05:00
2026-04-13 08:39:51 -07:00
2026-04-02 23:36:16 -07:00
2026-01-11 06:09:11 -10:00
2026-02-27 16:40:16 +01:00
2026-03-24 13:39:53 -04:00
2026-04-18 00:10:48 -07:00