]> git.baikalelectronics.ru Git - kernel.git/commit
drm/display/dp_mst: Don't validate port refs in drm_dp_check_and_send_link_address()
authorLyude Paul <lyude@redhat.com>
Thu, 2 Jun 2022 20:17:55 +0000 (16:17 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 21 Jun 2022 19:38:36 +0000 (15:38 -0400)
commitfb7600d2b8970ddf64c75468d1e822145f19c557
tree5321e4a6497545352e17824feae5df59b17a0e25
parent53947f3fdde4253206482d0c625e031fa0998620
drm/display/dp_mst: Don't validate port refs in drm_dp_check_and_send_link_address()

Drive-by cleanup, we don't need to validate the port references here as we
already previously went through the effort of refactoring things such that
we're guaranteed to be able to access ->mstb and ->port safely from
drm_dp_check_and_send_link_address(), since the only two places in the
codebase that drop an MST reference in such a way that it would remove it
from the topology are both protected under probe_lock.

Thanks for that, past Lyude!

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Wayne Lin <Wayne.Lin@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220602201757.30431-2-lyude@redhat.com
drivers/gpu/drm/display/drm_dp_mst_topology.c