diff options
author | Andi Shyti <andi.shyti@linux.intel.com> | 2025-02-14 03:34:37 +0300 |
---|---|---|
committer | Andi Shyti <andi.shyti@linux.intel.com> | 2025-02-17 17:02:43 +0300 |
commit | 3a79e5a8b454bd055c5a7a499f773e082209cd20 (patch) | |
tree | 36018a31c93aec93fb7cda0b259608eb2f0d147c /rust/helpers/helpers.c | |
parent | c088387ddd6482b40f21ccf23db1125e8fa4af7e (diff) | |
download | linux-3a79e5a8b454bd055c5a7a499f773e082209cd20.tar.xz |
drm/i915/gt: Replace kmap with its safer kmap_local_page counterpart
kmap_local_page(), unlike kmap(), performs a contextualized
mapping of pages. This means the pages are mapped locally to the
thread that created them, making them invisible outside the
thread and safer to use.
Replace kmap() and kunmap() with kmap_local_page() and
kunmap_local() counterparts for improved safety.
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: Nitin Gote <nitin.r.gote@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250214003437.1311476-1-andi.shyti@linux.intel.com
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions