drm/i915/display: Fix early deref of 'dsb'
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 24 May 2020 23:39:00 +0000 (00:39 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 May 2020 08:36:34 +0000 (09:36 +0100)
commit6f081dbfdd4e54d50161c437f2cea176384501d9
tree3b4882d6831ad832b87da71f82804d299c0c9a61
parentbf0840cdb3043ebfa40ac28e19be2886efcd5886
drm/i915/display: Fix early deref of 'dsb'

drivers/gpu/drm/i915/display/intel_dsb.c:177 intel_dsb_reg_write() warn: variable dereferenced before check 'dsb' (see line 175)

Fixes: afeda4f3b1c8 ("drm/i915/dsb: Pre allocate and late cleanup of cmd buffer")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Animesh Manna <animesh.manna@intel.com>
Cc: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200524233900.25598-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/display/intel_dsb.c