drm/i915/guc: Assert ctch->vma is allocated
authorMichal Wajdeczko <[email protected]>
Mon, 6 Nov 2017 13:51:54 +0000 (13:51 +0000)
committerChris Wilson <[email protected]>
Mon, 6 Nov 2017 13:57:37 +0000 (13:57 +0000)
commit1c5a907180365d0842c17fb15977ad426d429c14
treeea8f8f23d061b5a900fc1241fbbc61f05336d58b
parent856efd21c6f7139a74d340cdb6e0de5d8e226134
drm/i915/guc: Assert ctch->vma is allocated

Silence smatch by demonstrating that ctch->vma is allocated
following a successful chch_init()

drivers/gpu/drm/i915/intel_guc_ct.c:204 ctch_open() error:
 we previously assumed 'ctch->vma' could be null (see line 197)

Signed-off-by: Michal Wajdeczko <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
drivers/gpu/drm/i915/intel_guc_ct.c