diff options
| author | Lyude Paul <[email protected]> | 2019-01-10 19:53:37 -0500 |
|---|---|---|
| committer | Lyude Paul <[email protected]> | 2019-01-10 20:38:25 -0500 |
| commit | 81640f01c2aa47190d0f8efe3ee8ef307167efec (patch) | |
| tree | 295b49d5c71ae7373120e4b91a84e1060f346b61 /tools/perf/scripts/python/stat-cpi.py | |
| parent | 5e292e7646ef369e6f19c1f83f7795d5eafe3455 (diff) | |
drm/nouveau: Keep malloc references to MST ports
Now that we finally have a sane way to keep port allocations around, use
it to fix the potential unchecked ->port accesses that nouveau makes by
making sure we keep the mst port allocated for as long as it's
drm_connector is accessible.
Additionally, now that we've guaranteed that mstc->port is allocated for
as long as we keep mstc around we can remove the connector registration
checks for codepaths which release payloads, allowing us to release
payloads on active topologies properly. These registration checks were
only required before in order to avoid situations where mstc->port could
technically be pointing at freed memory.
Signed-off-by: Lyude Paul <[email protected]>
Reviewed-by: Ben Skeggs <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Jerry Zuo <[email protected]>
Cc: Harry Wentland <[email protected]>
Cc: Juston Li <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions