summaryrefslogtreecommitdiff
path: root/rust/kernel/interop/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorTomasz Lis <tomasz.lis@intel.com>2026-03-20 15:57:33 +0100
committerMatthew Brost <matthew.brost@intel.com>2026-03-25 18:24:52 -0700
commit3d4939c0ec011ad6dfda7c13362b3d2013425789 (patch)
tree7a84d139dc434524a3f2e5d07856e2609ba6706a /rust/kernel/interop/git@git.tavy.me:linux-stable.git
parent4e966014ce8826bb7d0180394f40b643b1405925 (diff)
drm/xe: Fix confusion with locals on context creation
After setting a local variable, check that local value rather that checking destination at which the value will be stored later. This fixes the obvious mistake in error path; without it, allocation fail would lead to NULL dereference during context creation. Fixes: 89340099c6a4 ("drm/xe/lrc: Refactor context init into xe_lrc_ctx_init()") Signed-off-by: Tomasz Lis <tomasz.lis@intel.com> Cc: Raag Jadav <raag.jadav@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Link: https://patch.msgid.link/20260320145733.1337682-1-tomasz.lis@intel.com
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions