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:
64da710
)
bridge: Fix panel-bridge error return on !panel.
author
Eric Anholt
<eric@anholt.net>
Thu, 15 Jun 2017 17:54:23 +0000
(10:54 -0700)
committer
Archit Taneja
<architt@codeaurora.org>
Wed, 21 Jun 2017 10:08:02 +0000
(15:38 +0530)
ERR_PTR() needs a negative errno argument.
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link:
http://patchwork.freedesktop.org/patch/msgid/20170615175423.17954-1-eric@anholt.net
drivers/gpu/drm/bridge/panel.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bridge/panel.c
b/drivers/gpu/drm/bridge/panel.c
index 99f9a4beb85928ee5bb12f38f9dc7fdd26ec0546..67fe19e5a9c6e65777c528e9a333e2c2247233fd 100644
(file)
--- a/
drivers/gpu/drm/bridge/panel.c
+++ b/
drivers/gpu/drm/bridge/panel.c
@@
-161,7
+161,7
@@
struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel,
int ret;
if (!panel)
- return ERR_PTR(EINVAL);
+ return ERR_PTR(
-
EINVAL);
panel_bridge = devm_kzalloc(panel->dev, sizeof(*panel_bridge),
GFP_KERNEL);