drm/i915/selftests: Fix uninitialized variable
authorAditya Swarup <aditya.swarup@intel.com>
Tue, 3 Mar 2020 14:23:47 +0000 (06:23 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Mar 2020 17:30:20 +0000 (17:30 +0000)
commit9b234d2643692601149b373e5d7e831eace95dfa
tree1d141bd37ac4e14bcc27d33691a4f505e20b882c
parent82126e596d8519baac416aee83cad938f1d23cf8
drm/i915/selftests: Fix uninitialized variable

Static code analysis tool identified struct lrc_timestamp data as being
uninitialized and then data.ce[] is being checked for NULL/negative
value in the error path. Initializing data variable fixes the issue.

Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Aditya Swarup <aditya.swarup@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200303142347.15696-1-aditya.swarup@intel.com
drivers/gpu/drm/i915/gt/selftest_lrc.c