drm/radeon: avoid leaking edid data
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jul 2014 21:57:19 +0000 (17:57 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Aug 2014 17:07:38 +0000 (18:07 +0100)
commit4f9bb3eb1995f6a03f6d5bd9407274b6d67f3480
tree62f163191bfd15854f3f6aa4f62b9def0ce9c0f5
parentf8bac1698272b067da1d45a7027661ea855eaad8
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: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/radeon_display.c