Commit 5eb22613 authored by Jiri Slaby's avatar Jiri Slaby Committed by Dave Airlie
Browse files

drm/radeon/kms: fix memory leak

Stanse found a memory leak in radeon_master_create. master_priv is not
freed/assigned on all paths. Fix that.
Signed-off-by: default avatarJiri Slaby <>
Signed-off-by: default avatarDave Airlie <>
parent 1d3d51b6
......@@ -2145,6 +2145,7 @@ int radeon_master_create(struct drm_device *dev, struct drm_master *master)
if (ret) {
DRM_ERROR("SAREA setup failed\n");
return ret;
master_priv->sarea_priv = master_priv->sarea->handle + sizeof(struct drm_sarea);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment