summaryrefslogtreecommitdiff
path: root/include/linux/moduleparam.h
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2026-01-30 22:49:27 +0300
committerMatthew Brost <matthew.brost@intel.com>2026-02-04 22:22:49 +0300
commit556dba95473900073a6c03121361c11f646dc551 (patch)
tree92ae4ba674666c6e74f38730ea708fb4059064fc /include/linux/moduleparam.h
parent39125eaf8863ab09d70c4b493f58639b08d5a897 (diff)
downloadlinux-556dba95473900073a6c03121361c11f646dc551.tar.xz
drm/gpusvm: Force unmapping on error in drm_gpusvm_get_pages
drm_gpusvm_get_pages() only sets the local flags prior to committing the pages. If an error occurs mid-mapping, has_dma_mapping will be clear, causing the unmap function to skip unmapping pages that were successfully mapped before the error. Fix this by forcibly setting has_dma_mapping in the error path to ensure all previously mapped pages are properly unmapped. Fixes: 99624bdff867 ("drm/gpusvm: Add support for GPU Shared Virtual Memory") Cc: stable@vger.kernel.org Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Francois Dugast <francois.dugast@intel.com> Link: https://patch.msgid.link/20260130194928.3255613-2-matthew.brost@intel.com
Diffstat (limited to 'include/linux/moduleparam.h')
0 files changed, 0 insertions, 0 deletions