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:00:07 +0000 (08:00 -0700)
commitc08ca3d473e8500ca0128688ad311f06594430d2
tree86b83e279a0ae05218083ea8e59a475b980f997b
parent1ed9cbc93c613efa69df58a1d4c8037adb105f43
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