Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4868394pxb; Mon, 28 Mar 2022 04:51:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP28gNQ7nHsVKzTvAHPCU+uCwzXenrwF2zzfSJw+3M7E5hbUtneTnT1X5WjGPR55+ExWmp X-Received: by 2002:a17:902:ecca:b0:154:8802:7cc2 with SMTP id a10-20020a170902ecca00b0015488027cc2mr26101019plh.37.1648468317501; Mon, 28 Mar 2022 04:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648468317; cv=none; d=google.com; s=arc-20160816; b=PGek9graqZGWW20gmuWMCONZGVz/wJ8rAfvyNBMf4CPVTJNYzHAjFGsQwzHq6QLDmI R9ONss/Wy3L56UtbZ8x+zRdF08xAIx2hgDcjkn3qm1msW1ocTnXJb2i0HC37ngoEzAMd L/iYang0v0GibNHD0+Q2BvUGm1xyMbd24ShosemKIilFerNCQBC9vBMxuBaT1WNgaOvd pb4B7hgR6/IAD5Bi4RrY9X1TzULfBracqrjHF+Z3zsPr8kBG6B8JJqPWIoKIJBY1e4NI G7qirEb/1kJGlLg55gnAQA5c/yiP5FZcEU98+uaR6fYqD1QpFl4ZV7xokgHRQlpPdXku eryQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9+ZMgF8rHzqNlDkErLZI/DheSIs9iRBaxXLkva+BiWM=; b=HTTtEdHq5S+qzPJqGEZdfePbky+uyMklFXlkQvDz7X1WJt1xGs9qTGdBAzDfHf9Ziq hvSvxDz3Lw1HfiCHQKBkoot6h3HfwHPNRUsfRVf5efqTxzXk1Z1Sm+h4zxuANaD5nRP6 6X2i5Ydu/oVq9MSW5Rba96yw4dUg9fup7++7PqmRj6Zw6mim6isv8QAt7YewsbBMAif4 xDOXnv3339YH+r+NHhqM0UUrQVh2Gf8NWR82wEe9s81F5Gq+78nG0VXk2RYSnxpXZ1kx 0lU20qDBhzDbdGdtcJ5EsDLsNxSY4hsJRFvtbZpRDPbamr5Rs69tyacHoRm6hinJrWrJ SUNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MD7VvaQZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a170903230500b00153b2d16504si13985937plh.268.2022.03.28.04.51.45; Mon, 28 Mar 2022 04:51:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MD7VvaQZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234043AbiCZTJX (ORCPT + 99 others); Sat, 26 Mar 2022 15:09:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231192AbiCZTJU (ORCPT ); Sat, 26 Mar 2022 15:09:20 -0400 Received: from mail-vk1-xa2b.google.com (mail-vk1-xa2b.google.com [IPv6:2607:f8b0:4864:20::a2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E5A1C14 for ; Sat, 26 Mar 2022 12:07:40 -0700 (PDT) Received: by mail-vk1-xa2b.google.com with SMTP id l184so5957045vkh.0 for ; Sat, 26 Mar 2022 12:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9+ZMgF8rHzqNlDkErLZI/DheSIs9iRBaxXLkva+BiWM=; b=MD7VvaQZmHal8Xv/fx01kI1KmByj2fQOUC5MgJ6KApMYVC8a8wU+KoSpFvPXYq0TGZ zZ2tBixUPv0UFU5ecP4ePgSX6FGzi52qYj9VBVhnrhp4+XRO0qCg8aKY50WPgsneX8/c 105dltBOkBstFSRzmSwraSUeA6g4EIHpqMS2w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9+ZMgF8rHzqNlDkErLZI/DheSIs9iRBaxXLkva+BiWM=; b=tS/1gv3VmN5HM4792CAWznjt6PGRRZ2344wFy9RpXnFCdePNkHiic3cPBME9wjsWcK mRgmQRXGi6ncujxAGmVNd4VmgygxD01RzZOSbH1qK7uC3Jdv95P5uRDtCWkSjpR188A1 mSCMKiqdxrtF66ypHo3uP8oJNucluwTHhBlWOrUSLNtcUyPgEzYKRtYPz8VwrO9+L/DY GyxbORm8vJk6nqmoeV3k3hvakdFFhkj+dEso8F/7ecyHrOeFmU0EeBIoTEVcrWBWnApK zXUvilih88iXDAx1QK7Od5zx/5nVGq+suHaMLUAZfNjVOEbX/uqCeApUfQkU7EgvmopY xwKw== X-Gm-Message-State: AOAM533AalWb7l5c5bVcKn1BzgtcbHpGMzTFRC1YZmibBO/5snQ/K0SK 7V6wm+0DtzpMTSb5qnAMsw3s/5vteNg/qQCjDTFMJvPkYzQ= X-Received: by 2002:a05:6122:1245:b0:33f:e889:f353 with SMTP id b5-20020a056122124500b0033fe889f353mr5624016vkp.17.1648321659222; Sat, 26 Mar 2022 12:07:39 -0700 (PDT) MIME-Version: 1.0 References: <20220326073326.3389347-1-yangyingliang@huawei.com> In-Reply-To: <20220326073326.3389347-1-yangyingliang@huawei.com> From: Hsin-Yi Wang Date: Sun, 27 Mar 2022 03:07:13 +0800 Message-ID: Subject: Re: [PATCH] drm/bridge: anx7625: add missing destroy_workqueue() in anx7625_i2c_probe() To: Yang Yingliang Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, xji@analogixsemi.com, robert.foss@linaro.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sat, Mar 26, 2022 at 3:24 PM Yang Yingliang wrote: > > 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 > 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 31ecf5626f1d..1895e3448c02 100644 > --- a/drivers/gpu/drm/bridge/analogix/anx7625.c > +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c > @@ -2654,7 +2654,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) { > @@ -2669,7 +2669,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.25.1 >