diff options
author | Dave Airlie <airlied@redhat.com> | 2014-05-02 05:22:19 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-05-16 03:46:06 +0200 |
commit | ad222799bec32a2db99c12b4dfa5dc19a1f6eaac (patch) | |
tree | ae1110d8ff8d3d5692382385899fc5c5725104d7 /drivers/gpu/drm/drm_stub.c | |
parent | Merge branch 'drm-init-cleanup' of git://people.freedesktop.org/~danvet/drm i... (diff) | |
download | linux-ad222799bec32a2db99c12b4dfa5dc19a1f6eaac.tar.xz linux-ad222799bec32a2db99c12b4dfa5dc19a1f6eaac.zip |
drm: fix memory leak around mode_group (v2)
This mode group id_list was never being freed.
v2: take David's suggestion to free in minor_free.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_stub.c')
-rw-r--r-- | drivers/gpu/drm/drm_stub.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index 1447b0ee3676..3727ac8bc310 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c @@ -294,6 +294,7 @@ static void drm_minor_free(struct drm_device *dev, unsigned int type) slot = drm_minor_get_slot(dev, type); if (*slot) { + drm_mode_group_destroy(&(*slot)->mode_group); kfree(*slot); *slot = NULL; } |