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:
9b0adc2
)
drm: Don't leak path blob property when updating
author
Daniel Stone
<
[email protected]
>
Mon, 20 Apr 2015 18:22:52 +0000
(19:22 +0100)
committer
Daniel Vetter
<
[email protected]
>
Thu, 7 May 2015 09:10:58 +0000
(11:10 +0200)
Previously, when updating the path blob property, we would leak the
existing one. Make this symmetrical with the tile and EDID blob
pointers.
Signed-off-by: Daniel Stone <
[email protected]
>
Cc: Dave Airlie <
[email protected]
>
Reviewed-by: Maarten Lankhorst <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/drm_crtc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_crtc.c
b/drivers/gpu/drm/drm_crtc.c
index 3007b44e6bf4494c36e06f65210efa98ea5b4a86..66671e040ba04295d1bd6d15bf956ceddcd5fbf6 100644
(file)
--- a/
drivers/gpu/drm/drm_crtc.c
+++ b/
drivers/gpu/drm/drm_crtc.c
@@
-4304,6
+4304,9
@@
int drm_mode_connector_set_path_property(struct drm_connector *connector,
size_t size = strlen(path) + 1;
int ret;
+ if (connector->path_blob_ptr)
+ drm_property_destroy_blob(dev, connector->path_blob_ptr);
+
connector->path_blob_ptr = drm_property_create_blob(connector->dev,
size, path);
if (!connector->path_blob_ptr)