]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge/analogix/anx6345: Cleanup on errors in anx6345_bridge_attach()
authorLyude Paul <lyude@redhat.com>
Fri, 19 Feb 2021 21:53:08 +0000 (16:53 -0500)
committerLyude Paul <lyude@redhat.com>
Tue, 23 Mar 2021 18:19:33 +0000 (14:19 -0400)
commitaafe0a0c015012d95955985c25a797e2164e60f0
treec1976fbb7da8c0a325da4982f4640ea9d1a39281
parentc98750749f55bb8d151f1768c2f15d15131fe6d0
drm/bridge/analogix/anx6345: Cleanup on errors in anx6345_bridge_attach()

Another drive-by fix I found when fixing DP AUX adapter across the kernel
tree - make sure we don't leak resources (and by proxy-AUX adapters) on
failures in anx6345_bridge_attach() by unrolling on errors.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210219215326.2227596-13-lyude@redhat.com
drivers/gpu/drm/bridge/analogix/analogix-anx6345.c