MLK-16240 drm/bridge: it6263: Don't use freed edid structure in ->get_modes()
authorLiu Ying <victor.liu@nxp.com>
Tue, 22 Aug 2017 07:54:57 +0000 (15:54 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:43 +0000 (15:36 -0500)
commit58b0945cb74f9a446ee4d860fd77725eae1b508e
tree4306a0dbb78969c28b6f1a44de9ab4c73d04ede7
parent3e691681deb78acfc8c2b9d9adbe419fc0b58959
MLK-16240 drm/bridge: it6263: Don't use freed edid structure in ->get_modes()

We call the helper drm_detect_hdmi_monitor() to check if the EDID blob read
from a monitor indicates the monitor is connected via HDMI or not.  We pass
an edid structure to the helper.  However, the structure has been freed
before we use it.  This patch moves the helper up before the structure is
freed to fix the issue.

Fixes: a5c01aa91842 ("MLK-15001-25 drm/bridge: Add ITE IT6263 LVDS to HDMI transmitter support")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/drm/bridge/it6263.c