diff options
| author | Qiang Liu <liuqiang@kylinos.cn> | 2026-05-21 10:18:58 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-06-08 18:21:32 -0700 |
| commit | 8198657c74170ea78808d1f1d886c7d35fd3694e (patch) | |
| tree | 4e2749dfe3a378ef6cd2a3de64e1c49c7a2430ed /include/linux/moduleparam.h | |
| parent | 32a2b73ec232b284b029d34bcfaa9a7f424151d2 (diff) | |
| download | lwn-8198657c74170ea78808d1f1d886c7d35fd3694e.tar.gz lwn-8198657c74170ea78808d1f1d886c7d35fd3694e.zip | |
lib/test_hmm: check alloc_page_vma() return value and handle OOM
Check alloc_page_vma() return status for page allocation failures, free
allocated pages and return VM_FAULT_OOM on error.
Handle return codes of dmirror_devmem_fault_alloc_and_copy(), call
migrate_vma_finalize() to remove migration entries from
migrate_vma_setup().
Link: https://lore.kernel.org/20260521021858.21511-1-liuqiangneo@163.com
Signed-off-by: Qiang Liu <liuqiang@kylinos.cn>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Leon Romanovsky <leon@kernel.org>
[akpm@linux-foundation.org: fix dmirror_devmem_fault_alloc_and_copy() retval handling]
Link: https://lore.kernel.org/oe-kbuild-all/202606011329.zWs2BKy4-lkp@intel.com/
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/moduleparam.h')
0 files changed, 0 insertions, 0 deletions
