Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4323049rwl; Tue, 28 Mar 2023 05:53:01 -0700 (PDT) X-Google-Smtp-Source: AK7set8fEftZhS503g63Ur1REEdNJySa8PDneTgCirIth7fzaUodvWXNSrXSwXZbzUVPPNH/TQiK X-Received: by 2002:a05:6a20:3008:b0:d9:b820:10a4 with SMTP id d8-20020a056a20300800b000d9b82010a4mr12576730pzd.8.1680007981573; Tue, 28 Mar 2023 05:53:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680007981; cv=none; d=google.com; s=arc-20160816; b=dZj1X2pBFt64Px2eODuKrq6wCa1bZjG/cF38/QHLIoILJ5gp1DeyErvszXt4cTC3ee W3+TmxJ94MYSLfU8/3S/2Rpbgrok/5HmUjg9fkfeCmNf+rJzteRNaI4xh7SEhHfdaqXS TyC8bIufx56/OEdzflF8Rv3aIZA3alglhQuAL4VM/NhM5GsyRqwsFM53qwwcObp00U8b QHXkrVr8bKk7uIQxL1/PVL+3zVbxaFf/ql2XJk3z6W/8aUKffeSHEt8SQicnRARhnDQY gIa7N86/kk8gOx+jNnOGjhZilqBYaVwfSqm3DqDFWoOyCv8pOozacvbiJOmGdozlPFS/ vzhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=oPp+3nUFhZ+YccWkOIH56CCwebX/zcxyGIO1u7xt7XA=; b=GuhxxcieOPcahG8G/xDs5Nu0VAI0LzkKGCPduO/e1yQo072kQn5xR3tJq6yqtP5xdX ijzPHdL9ymBQXmiXLJ6Xt+UwkOJ+hOfnrjCGVk06U6UweOnmkHf0xxtbAO0ec9XUtBbS L7Ia+l4sduR9ofyMxx/XTMO9PVjMuq1Wo9uDxlbdCgcGhPOkILdjEPuroKK5vKJp/6ko mGODdPDurFJxs8TUPQ5889GomIEQ+/neyOPaJgwxkWt0u6SK3Q8GMGfOaqcDvqXKMpdu EPt3GX/19ZRM5j+7vUHuxxtpHI/vKrpAVP57sVokStRZtKU5Kh72i+vzl8VC3Dm7Owau PM5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UMUoBtzi; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a056a001aca00b0062609665997si18653832pfv.201.2023.03.28.05.52.47; Tue, 28 Mar 2023 05:53:01 -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=@linaro.org header.s=google header.b=UMUoBtzi; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbjC1MwA (ORCPT + 99 others); Tue, 28 Mar 2023 08:52:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232723AbjC1Mvg (ORCPT ); Tue, 28 Mar 2023 08:51:36 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 970C3B447 for ; Tue, 28 Mar 2023 05:51:00 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id a11so12421458lji.6 for ; Tue, 28 Mar 2023 05:51:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680007858; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=oPp+3nUFhZ+YccWkOIH56CCwebX/zcxyGIO1u7xt7XA=; b=UMUoBtzi8Lljz2Sgb34U5+xP6Cu5rQuIeiaCyv2PE0Qy2pb0JDEUpuRrub0zyOxEpG Cz6ta8fT083O124Iuv8hNxLEjJEaTEwySKZRBOCj4XCsSnnCQsJJd1SbR1KDebBCx/UD W8Ju0NAR93gKRNTOFefaA1HYM9rkGhZPYuap7A75MkKBehF60/Cc+O93aT6FvX6pfPzb 3i76DO71uzn07NOuoPLptIeTq79g+lpO7aYaikD/lxpuEbfGnlTogT3qhMT1dSSlSfbO 4HAwb96diIMyQTLi/KEOP+kT7Khau+oMMDYhtMZgdTEZAduqhqmlh81XdhL6BnLxG/9b 7Fmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680007858; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oPp+3nUFhZ+YccWkOIH56CCwebX/zcxyGIO1u7xt7XA=; b=sPcCKAHcrD0T46RRnUQuUON4MeaD0PEMIG8pEkjmlB7yPzxZZBYXGRkh4NV/oIY39H OECJjuqDUbx0froiSRmSyKBPLA31Yrw3GZwvPmvtqWzfGn+glgGCAB8F6L8Ize4YFEm4 NLghwqknoZ4dIuW4VlckdEByIdj96hYg6yoAY7G0vHf/ex9gA4V/lQ3FFg1sPzR4iTsQ C/BeG+7t0PknOd+l+mbFj+7ZcKrC3BfdtsRoR5fyIHmI8afL0j8d6Ph3YsuIT7cRVP3J r1W4dO+lPULeNHdVadvuDllCJ3+rKmLVV05P+9pZUykYff5iYy9alR/JoLEHRl+c33g8 pTLA== X-Gm-Message-State: AAQBX9cjHmNVwCGb8Y7BmtIftqc34t6ZA5nwXEtvAe16KWVigkjR1JSr EwwlrivaF6usInuf/PHK8Ua17w== X-Received: by 2002:a2e:9d0c:0:b0:29e:4fa5:1708 with SMTP id t12-20020a2e9d0c000000b0029e4fa51708mr4844998lji.3.1680007858273; Tue, 28 Mar 2023 05:50:58 -0700 (PDT) Received: from ?IPV6:2001:14ba:a085:4d00::8a5? (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id y2-20020a2eb002000000b0029b32a40934sm4666781ljk.113.2023.03.28.05.50.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Mar 2023 05:50:57 -0700 (PDT) Message-ID: <40178a1b-4a97-8f18-74ca-ccb1fc7403d4@linaro.org> Date: Tue, 28 Mar 2023 15:50:57 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 08/10] drm/msm: fix workqueue leak on bind errors Content-Language: en-GB To: Johan Hovold , Rob Clark , Abhinav Kumar Cc: Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20230306100722.28485-1-johan+linaro@kernel.org> <20230306100722.28485-9-johan+linaro@kernel.org> From: Dmitry Baryshkov In-Reply-To: <20230306100722.28485-9-johan+linaro@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 06/03/2023 12:07, Johan Hovold wrote: > Make sure to destroy the workqueue also in case of early errors during > bind (e.g. a subcomponent failing to bind). > > Since commit c3b790ea07a1 ("drm: Manage drm_mode_config_init with > drmm_") the mode config will be freed when the drm device is released > also when using the legacy interface, but add an explicit cleanup for > consistency and to facilitate backporting. > > Fixes: 060530f1ea67 ("drm/msm: use componentised device support") > Cc: stable@vger.kernel.org # 3.15 > Cc: Rob Clark > Signed-off-by: Johan Hovold > --- > drivers/gpu/drm/msm/msm_drv.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry