]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Assert guc->stage_desc_pool is allocated
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Nov 2017 11:48:33 +0000 (11:48 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Nov 2017 13:57:21 +0000 (13:57 +0000)
commit856efd21c6f7139a74d340cdb6e0de5d8e226134
tree3cf69fb41aef8aeec388e366701159fca1ed724f
parentf991c492aa55fb1c6834882c5d786d5bb3b25f07
drm/i915/guc: Assert guc->stage_desc_pool is allocated

Silence smatch by demonstrating that guc->stage_desc_pool is allocated
following a successful guc_stage_desc_pool_create(),

drivers/gpu/drm/i915/i915_guc_submission.c:1293 i915_guc_submission_init() error: we previously assumed 'guc->stage_desc_pool' could be null (see line 1261)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Oscar Mateo <oscar.mateo@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171106114833.31199-1-chris@chris-wilson.co.uk
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
drivers/gpu/drm/i915/i915_guc_submission.c