Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9522cd13 authored by Rajkumar Subbiah's avatar Rajkumar Subbiah
Browse files

disp: msm: dp: use base connector properties for mst connectors



When DRM property objects are created, the DRM framework attaches a
dellocator which can eventually free the object when the last reference
is removed from it. The framework can only do this before the driver is
registered. If a property is created after the registration then the
framework is unable to attach a deallocator causing a memory leak during
tear down.

The current DP driver creates a new colorspace property whenever a
new dp connector is initialized. It creates a base connector at probe
time prior to registration. But then it also creates new connectors,
post registration, whenever a new MST dongle is attached to the
topology, causing memory leaks.

This change limits the property creation to the base connector and
attaches the same object to MST connectors to avoid memory leak.

Change-Id: Ib97dc7aac260b4f3f96c1097f58bd276c68501f8
Signed-off-by: default avatarRajkumar Subbiah <rsubbia@codeaurora.org>
parent 20ed4f07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment