diff options
| author | Matthew Brost <matthew.brost@intel.com> | 2026-09-01 23:35:03 -0700 |
|---|---|---|
| committer | Matthew Brost <matthew.brost@intel.com> | 2026-09-02 12:25:31 -0700 |
| commit | 9e6372ec2a3990662ae0a67f56ac0aee19848d5b (patch) | |
| tree | 220d142336cf382708e780b75214993e96a32941 /scripts/Makefile.thinlto | |
| parent | 332ad707e38fb82dd998b4d0782c15579e5784f1 (diff) | |
drm/pagemap: dma-unmap pages before handling migration errors
drm_pagemap_migrate_unmap_pages() relies on the pages array to determine
which pages require DMA unmapping. However,
drm_pagemap_migration_unlock_put_pages() clears the array as part of its
cleanup, leaving drm_pagemap_migrate_unmap_pages() with no valid page
information if it is called afterward.
Call drm_pagemap_migrate_unmap_pages() before
drm_pagemap_migration_unlock_put_pages() so the pages array remains
valid during DMA unmapping.
Reported-by: Sashiko <sashiko-bot@kernel.org>
Fixes: f86ad0ed620c ("drm/gpusvm, drm/pagemap: Move migration functionality to drm_pagemap")
Cc: stable@vger.kernel.org
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patch.msgid.link/20260902063504.3024362-1-matthew.brost@intel.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
