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:
11df4d9
)
drm/i915: Fix error handling for cursor/sprite plane create failure
author
Ville Syrjälä
<
[email protected]
>
Mon, 7 Nov 2016 20:20:56 +0000
(22:20 +0200)
committer
Ville Syrjälä
<
[email protected]
>
Tue, 8 Nov 2016 13:39:03 +0000
(15:39 +0200)
intel_cursor_plane_create() and intel_sprite_plane_create() return
an error pointer, so let's not mistakenly look for a NULL pointer.
Cc: Chris Wilson <
[email protected]
>
Reported-by: Chris Wilson <
[email protected]
>
References: https://lists.freedesktop.org/archives/intel-gfx/2016-November/110690.html
Fixes: b079bd17e301 ("drm/i915: Bail if plane/crtc init fails")
Signed-off-by: Ville Syrjälä <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Chris Wilson <
[email protected]
>
drivers/gpu/drm/i915/intel_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index 92ab01f33208c2cfedbb3f03d02f77e68887eee1..86ea86dc7b2a726326ea1297e9fccfbf691cbc7a 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_display.c
+++ b/
drivers/gpu/drm/i915/intel_display.c
@@
-15289,14
+15289,14
@@
static int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe)
struct intel_plane *plane;
plane = intel_sprite_plane_create(dev_priv, pipe, sprite);
- if (
!plane
) {
+ if (
IS_ERR(plane)
) {
ret = PTR_ERR(plane);
goto fail;
}
}
cursor = intel_cursor_plane_create(dev_priv, pipe);
- if (
!cursor
) {
+ if (
IS_ERR(cursor)
) {
ret = PTR_ERR(cursor);
goto fail;
}