mirror of https://gitee.com/openkylin/linux.git
drm/edid: drm modes have to be free with drm_mode_destroy
to add the missing drm_mode_object_put for that mode. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
59ce062ead
commit
aefd330e69
|
@ -750,7 +750,7 @@ drm_mode_std(struct drm_connector *connector, struct edid *edid,
|
|||
*/
|
||||
mode = drm_gtf_mode(dev, hsize, vsize, vrefresh_rate, 0, 0);
|
||||
if (drm_mode_hsync(mode) > drm_gtf2_hbreak(edid)) {
|
||||
kfree(mode);
|
||||
drm_mode_destroy(dev, mode);
|
||||
mode = drm_gtf_mode_complex(dev, hsize, vsize,
|
||||
vrefresh_rate, 0, 0,
|
||||
drm_gtf2_m(edid),
|
||||
|
|
Loading…
Reference in New Issue