OSDN Git Service

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)
commitc42712c6e9bea042ea9696713024af7417f5ce18
treec1976fbb7da8c0a325da4982f4640ea9d1a39281
parentacf5ff297ec60ae4205927fcc860325e638e42ac
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