drm/xe/oa: Fix potential NPD when OA is not initialized
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 19 Jun 2024 17:54:27 +0000 (19:54 +0200)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Thu, 20 Jun 2024 16:13:47 +0000 (09:13 -0700)
commitcb925d31f091467dee09dd49eab8bcd2c9b3e73e
treece2778298ba16790fb4288a5a4786f297bdeb698
parent7a893345a406b46b6a0f9575ce58e513cf79b997
drm/xe/oa: Fix potential NPD when OA is not initialized

If oa->xe can be NULL then we shall not use it as a valid pointer.

Fixes: cdf02fe1a94a ("drm/xe/oa/uapi: Add/remove OA config perf ops")
Fixes: b6fd51c62119 ("drm/xe/oa/uapi: Define and parse OA stream properties")
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240619175427.861-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_oa.c