projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3f90c6
)
drm: of: Fix double-free bug
author
Biju Das
<biju.das.jz@bp.renesas.com>
Thu, 23 Jul 2020 11:10:54 +0000
(12:10 +0100)
committer
Sam Ravnborg
<sam@ravnborg.org>
Sun, 26 Jul 2020 16:04:06 +0000
(18:04 +0200)
Fix double-free bug in the error path.
Fixes: 6529007522de ("drm: of: Add drm_of_lvds_get_dual_link_pixel_order")
Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/1595502654-40595-1-git-send-email-biju.das.jz@bp.renesas.com
drivers/gpu/drm/drm_of.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_of.c
b/drivers/gpu/drm/drm_of.c
index b50b44e7627975522b33b76f2d854c3fe2f3eb2f..8fc3f67e3e760e39e057fc7c2a7052d5408f287e 100644
(file)
--- a/
drivers/gpu/drm/drm_of.c
+++ b/
drivers/gpu/drm/drm_of.c
@@
-322,10
+322,8
@@
static int drm_of_lvds_get_remote_pixels_type(
* configurations by passing the endpoints explicitly to
* drm_of_lvds_get_dual_link_pixel_order().
*/
- if (!current_pt || pixels_type != current_pt) {
- of_node_put(remote_port);
+ if (!current_pt || pixels_type != current_pt)
return -EINVAL;
- }
}
return pixels_type;