diff options
author | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2023-06-02 20:27:32 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:34:55 +0300 |
commit | 5db4afe1db56c10b6edef41ad9309bf0bed87f34 (patch) | |
tree | e10e41b283dd6c49c5a381ffd830376cc6496dcc /include/uapi/drm | |
parent | 898f86c23c600c8f70bf1a03e81a7be97038a72d (diff) | |
download | linux-5db4afe1db56c10b6edef41ad9309bf0bed87f34.tar.xz |
drm/xe: Fix unreffed ptr leak on engine lookup
The engine xarray holds a ref to engine, guarded by the lock.
While we do lookup for engine, we need to take the ref inside
the lock to prevent unreffed pointer escaping and
causing potential use-after-free after.
v2: remove branch prediction hint (Thomas)
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230602172732.1001057-1-mika.kuoppala@linux.intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'include/uapi/drm')
0 files changed, 0 insertions, 0 deletions