drm/vc4: dpi: Remove unnecessary drm_of_panel_bridge_remove call
authorMaxime Ripard <maxime@cerno.tech>
Wed, 11 May 2022 09:19:22 +0000 (11:19 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 7 Sep 2022 08:53:02 +0000 (10:53 +0200)
commit6a8139240d142b90f897f0e09051b4aa990600bf
tree91b9e7b751e84ce4294083541e9866e3e121c2ad
parent9c4e34097dd434ee55455c37582274b4253a815d
drm/vc4: dpi: Remove unnecessary drm_of_panel_bridge_remove call

Since we have a managed call to create our panel_bridge instance, the call
to drm_of_panel_bridge_remove() at unbind is both redundant and dangerous
since it might lead to a use-after-free.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_dpi.c