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:
4b9a393
)
drm/i915/selftests: Fix an IS_ERR() vs NULL check
author
Dan Carpenter
<
[email protected]
>
Tue, 26 Mar 2019 05:08:43 +0000
(08:08 +0300)
committer
Jani Nikula
<
[email protected]
>
Wed, 27 Mar 2019 08:10:32 +0000
(10:10 +0200)
The live_context() function returns error pointers. It never returns
NULL.
Fixes: 9c1477e83e62 ("drm/i915/selftests: Exercise adding requests to a full GGTT")
Signed-off-by: Dan Carpenter <
[email protected]
>
Reviewed-by: Mika Kuoppala <
[email protected]
>
Signed-off-by: Chris Wilson <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/20190326050843.GA20038@kadam
(cherry picked from commit
602cbe8efc523ba56e1f41e8f74c7aa835672593
)
Signed-off-by: Jani Nikula <
[email protected]
>
drivers/gpu/drm/i915/selftests/i915_gem_evict.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/selftests/i915_gem_evict.c
b/drivers/gpu/drm/i915/selftests/i915_gem_evict.c
index 32dce7176f6381dc2a0429691dccc2eafc7fe360..b9b0ea4e2404d6cfce2c37be5d331591fb88fe6e 100644
(file)
--- a/
drivers/gpu/drm/i915/selftests/i915_gem_evict.c
+++ b/
drivers/gpu/drm/i915/selftests/i915_gem_evict.c
@@
-455,7
+455,7
@@
static int igt_evict_contexts(void *arg)
struct i915_gem_context *ctx;
ctx = live_context(i915, file);
- if (
!ctx
)
+ if (
IS_ERR(ctx)
)
break;
/* We will need some GGTT space for the rq's context */