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 14:06:46 +0000 (07:06 -0700)
commitb63dd4c81b9eccf95c1d08775bb7f2d05d70c8f1
tree23f334f295788e4dea33ff18a865586bee0e8f08
parented379762fda2d66dd4907035c79467daafe7d70b
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