drm: Fix memory leak in drm_mode_setcrtc()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 13 Mar 2012 10:35:43 +0000 (12:35 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 15 Mar 2012 09:50:20 +0000 (09:50 +0000)
commitee34ab5b01e6e7cbd9438aeb6ccbd08d3727988e
tree74eb3f4bd68763c46f18df4c99c1789e795c5dff
parent1dd6c8bda9aef72a819707cfc293917295af15d3
drm: Fix memory leak in drm_mode_setcrtc()

The mode passed to the .set_config() hook was never freed. The drivers
will make a copy of the mode, so simply free it when done.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c