diff options
| author | 2025-09-02 10:10:42 +0200 | |
|---|---|---|
| committer | 2025-09-03 08:18:54 +0100 | |
| commit | 82b13dd5d93d9d170c096f042eb470add22c338c (patch) | |
| tree | ff1bdb5a901053711b50540796c638fcbdb49e9e /rust/helpers/task.c | |
| parent | drm/i915/gt: Relocate Gen6 context-specific workaround (diff) | |
| download | wireguard-linux-82b13dd5d93d9d170c096f042eb470add22c338c.tar.xz wireguard-linux-82b13dd5d93d9d170c096f042eb470add22c338c.zip | |
drm/i915: Replace kmalloc() + copy_from_user() with memdup_user()
Replace kmalloc() followed by copy_from_user() with memdup_user() to
improve and simplify set_context_image(), and to silence the following
Coccinelle/coccicheck warning reported by memdup_user.cocci:
WARNING opportunity for memdup_user
No functional changes intended.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
Link: https://lore.kernel.org/r/20250902081046.35463-2-thorsten.blum@linux.dev
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions
