From: Chuhong Yuan Date: Mon, 9 Dec 2019 08:57:47 +0000 (+0800) Subject: drm/gma500: add a missed gma_power_end in error path X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4286dc07e6ae56ed33e9067850d6c04ff062195f;p=linux.git drm/gma500: add a missed gma_power_end in error path oaktrail_lvds_mode_set() misses a gma_power_end() in an error path. Add the call to fix it. Signed-off-by: Chuhong Yuan Signed-off-by: Patrik Jakobsson Link: https://patchwork.freedesktop.org/patch/msgid/20191209085747.16057-1-hslester96@gmail.com --- diff --git a/drivers/gpu/drm/gma500/oaktrail_lvds.c b/drivers/gpu/drm/gma500/oaktrail_lvds.c index 7390403ea1b72..582e095975002 100644 --- a/drivers/gpu/drm/gma500/oaktrail_lvds.c +++ b/drivers/gpu/drm/gma500/oaktrail_lvds.c @@ -117,6 +117,7 @@ static void oaktrail_lvds_mode_set(struct drm_encoder *encoder, if (!connector) { DRM_ERROR("Couldn't find connector when setting mode"); + gma_power_end(dev); return; }