drm/vc4: dpi: Remove unnecessary drm_of_panel_bridge_remove call
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:38:57 +0000 (19:38 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:08 +0000 (10:46 +0200)
commit5801eda938f5f98cbdb6bc83e2c35499735f006a
tree6d940f45551ebc2c055d9a30e305a56ea124847e
parentff5b18ce8a5b4fccabd46ed7f17ef3e7f2d1f8e0
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>
Link: https://lore.kernel.org/r/20220711173939.1132294-28-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_dpi.c