drm/radeon: avoid leaking edid data
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jul 2014 21:57:19 +0000 (17:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:06:02 +0000 (08:06 -0700)
commita0c34f54dacf05e07de8d8d438a4e5848183da71
tree2e9a7df4e6a87cc21d8a898047a5669818c356e6
parente96faee7f217d9998e6602bc331780654fbdc023
drm/radeon: avoid leaking edid data

commit 0ac66effe7fcdee55bda6d5d10d3372c95a41920 upstream.

In some cases we fetch the edid in the detect() callback
in order to determine what sort of monitor is connected.
If that happens, don't fetch the edid again in the get_modes()
callback or we will leak the edid.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_display.c