projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
856efd2
)
drm/i915/guc: Assert ctch->vma is allocated
author
Michal Wajdeczko
<
[email protected]
>
Mon, 6 Nov 2017 13:51:54 +0000
(13:51 +0000)
committer
Chris Wilson
<
[email protected]
>
Mon, 6 Nov 2017 13:57:37 +0000
(13:57 +0000)
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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_guc_ct.c
b/drivers/gpu/drm/i915/intel_guc_ct.c
index c4cbec140101b380b093f08b66759f00fb5ba06a..24ad55752396515681f964db1eb2ae0f8bbbde5d 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_guc_ct.c
+++ b/
drivers/gpu/drm/i915/intel_guc_ct.c
@@
-198,6
+198,7
@@
static int ctch_open(struct intel_guc *guc,
err = ctch_init(guc, ctch);
if (unlikely(err))
goto err_out;
+ GEM_BUG_ON(!ctch->vma);
}
/* vma should be already allocated and map'ed */