Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2276324iof; Wed, 8 Jun 2022 01:10:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR2EGm2nbZhlFHe7HP3S2/4b1pmmMynkOjppZNWIuKXTs/Wmk9QL+N+iep3yRLVmuIYTr5 X-Received: by 2002:a63:c5:0:b0:3fe:26a0:7abe with SMTP id 188-20020a6300c5000000b003fe26a07abemr3056323pga.152.1654675812649; Wed, 08 Jun 2022 01:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654675812; cv=none; d=google.com; s=arc-20160816; b=ch8VEzLB+W7EHFTBxjaFtMRYrRvhUtCkfMq8yWLDFNLMpCPK29Np1LsRXGiwg80bb7 NyqFB4Nw23sza6PCcA+fAG0kEM05KvAz55IoeEPdikxCu6kQlD/0g3mf18zWTVojQtz+ cCZNU7Y3AA5zQ05sF2YrwCRPhG5VPoi7OcM6S7N9ZTu5ft24Xnre7EQXLHKQVN0351ek II2ZoWLyNlI9BQyZyZXXtHcRjSmLI4uaY/a4ttrNGcL5iU6ot0fEr5vy+ZcO1shYVZVY s6IrDGjNuQOvTruUE1QJu64uo2RprHaUv/0dQNXYkeLjO+0MQ2MB2PJUScRwzFkOxgjw 4mFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jQQiuEjYQ1uV8X9tMRFUREcncs1RQTNEvlw09BUFw1M=; b=nJXHA/zYNCb3Uy4o1AhawDRKc/Jz+3Z0Tl+LHtFT6BjzqG1viR1BDXszab52J8Ha6Z 35kYT7kNRqsBnahaMfaQzdy4KLddBGCJK2eaT6XqibkEBlnlTYM/3QS3MYvxu6hx3apt CAHjxlCv8G9kmu348OBkBvBd5jczo0ItTtDkjlhFyaY6lGAhl9ylScpgeX7F+6LRz/ej XJXj6KckJf21q0HUJSbZcDe7WvpQroqKlqRv/GpoLG+CrI2bVLmCmlB+F4ZpMb4rG6oA l9Glhsoz1UGztEskiNPxbdBLn83k4/NU2VFx2UAeMBzHdmPK0xK22O/yuNk+8vt1gewq Llzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CL5GjuMg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id lb2-20020a17090b4a4200b001df4e4f854csi35887231pjb.131.2022.06.08.01.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:10:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CL5GjuMg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3F0C02D0569; Wed, 8 Jun 2022 00:41:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354585AbiFGW3K (ORCPT + 99 others); Tue, 7 Jun 2022 18:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380975AbiFGVRM (ORCPT ); Tue, 7 Jun 2022 17:17:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B01901455BA; Tue, 7 Jun 2022 11:58:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B2CDDB8220B; Tue, 7 Jun 2022 18:58:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F624C3411F; Tue, 7 Jun 2022 18:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628286; bh=gbzerGw41nFYcSBVbgsHBzOTUnrtuO+DP0OSHhN634Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CL5GjuMgzMh/M2muJkCSJQx8PwE6PDfZJQyY7qdiahRsmmR2DJP+iOSL+ALV3hpyF PGulaXvCEyWsNIK+GqMCDhlQoKKLjwJfs7nh9PI+Tjiev7vJ6gjK3rT1AuzdvntTVt pfSqNdYtucJYbRSJbxNRHxdxFCraRYfV5f027Jcc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yang Yingliang , Hsin-Yi Wang , Robert Foss , Sasha Levin Subject: [PATCH 5.18 273/879] drm/bridge: anx7625: add missing destroy_workqueue() in anx7625_i2c_probe() Date: Tue, 7 Jun 2022 18:56:31 +0200 Message-Id: <20220607165010.773878807@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Yingliang [ Upstream commit 6f5efd118efafa22139e8670a4e4b506ba757dfd ] Add the missing destroy_workqueue() before return from anx7625_i2c_probe() in the error handling case. Fixes: adca62ec370c ("drm/bridge: anx7625: Support reading edid through aux channel") Signed-off-by: Yang Yingliang Reviewed-by: Hsin-Yi Wang Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20220326073326.3389347-1-yangyingliang@huawei.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/analogix/anx7625.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index 8e1851a57638..a23e13c29a1d 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -2657,7 +2657,7 @@ static int anx7625_i2c_probe(struct i2c_client *client, if (ret) { if (ret != -EPROBE_DEFER) DRM_DEV_ERROR(dev, "fail to parse DT : %d\n", ret); - return ret; + goto free_wq; } if (anx7625_register_i2c_dummy_clients(platform, client) != 0) { @@ -2672,7 +2672,7 @@ static int anx7625_i2c_probe(struct i2c_client *client, pm_suspend_ignore_children(dev, true); ret = devm_add_action_or_reset(dev, anx7625_runtime_disable, dev); if (ret) - return ret; + goto free_wq; if (!platform->pdata.low_power_mode) { anx7625_disable_pd_protocol(platform); -- 2.35.1