]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/userptr: Fix an incorrect assert
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 7 Mar 2025 10:01:09 +0000 (11:01 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Sat, 8 Mar 2025 11:43:05 +0000 (12:43 +0100)
commit70e5043ba85eae199b232e39921abd706b5c1fa4
tree53f026ec1b771e1ebb6c5220c6e6e2561d967658
parentfc858ddf9c68696537cec530d2d48bf6ed06ea92
drm/xe/userptr: Fix an incorrect assert

The assert incorrectly checks the total length processed which
can in fact be greater than the number of pages. Fix.

Fixes: ea3e66d280ce ("drm/xe/hmm: Don't dereference struct page pointers without notifier lock")
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250307100109.21397-1-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/xe/xe_hmm.c