Reviewed-by: Lyude Paul <ly...@redhat.com> Will push to the appropriate branch in a bit
On Mon, 2022-05-16 at 11:20 +0800, Hangyu Hua wrote: > drm_dp_mst_get_edid call kmemdup to create mst_edid. So mst_edid need to be > freed after use. > > Signed-off-by: Hangyu Hua <hbh...@gmail.com> > --- > drivers/gpu/drm/dp/drm_dp_mst_topology.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/dp/drm_dp_mst_topology.c > b/drivers/gpu/drm/dp/drm_dp_mst_topology.c > index 11300b53d24f..7a7cc44686f9 100644 > --- a/drivers/gpu/drm/dp/drm_dp_mst_topology.c > +++ b/drivers/gpu/drm/dp/drm_dp_mst_topology.c > @@ -4852,6 +4852,7 @@ static void fetch_monitor_name(struct > drm_dp_mst_topology_mgr *mgr, > > mst_edid = drm_dp_mst_get_edid(port->connector, mgr, port); > drm_edid_get_monitor_name(mst_edid, name, namelen); > + kfree(mst_edid); > } > > /** -- Cheers, Lyude Paul (she/her) Software Engineer at Red Hat