Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1750283rwl; Fri, 24 Mar 2023 15:10:26 -0700 (PDT) X-Google-Smtp-Source: AKy350a2/uZ1wulxD4QEoklf9Sh/i6g/oyGAMYz5sT+7zVjBrG9y958HWv+hxf+0RFmwlze5d90A X-Received: by 2002:a17:907:f90:b0:8fd:2f01:86c0 with SMTP id kb16-20020a1709070f9000b008fd2f0186c0mr4871955ejc.2.1679695825917; Fri, 24 Mar 2023 15:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679695825; cv=none; d=google.com; s=arc-20160816; b=UIQCC/p//SiplXW74cLSNA1InCDuUzad+Dtp2itDxtJBWHQZ2w6PwBtmGrkXaYyCIz VUHvPgUwuHCI/rSyEtnjNGmEMbiiVPTmWIOnuEe1YEqYy9bcWwWxJxiwtBgE+jDXKUke K4CvUB2PjHSfZyzcecft3kyL8RIt8CTmCOe7Oj11X/oPuvuMI7mCQEWm4E3ZFSocTjFF MY8hlFN3BXpJHtb+UoIwAcZoIocWWVJA7j4QutGvrN88KHyv4Mw+aERa4xXXj08ptfDv zMBIkdHFT65k2W9gAjrV9uvn1x/3WEB4YthCC7yfS1SICGsvTjtvySKGqzK1RcBpvL45 QVyA== 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=kaR8KoYOCyBpa3wXhO1e69P/3ERCtiHXhKvCkKv6lXM=; b=DPLAkKAq8W9l2EavQpKhj0zF2hDvQAFdHZxZeqolBfJf+BBHzlO9NwAXaQxfNVmmT5 Btoyg0SPeLr5bZ1yb0iIS+8HyS+4hLiEUIC4tSegznWHIEP3s72i+flDWK2VmsO54hS+ KxrjZTMIab8GOHKZiSiKEPlDqmf5IPETbcvftyED2dDnvYlyJpT4JUPdAlKx49/YnYTr grhJnhlIsV7RggEmDx/y57r3KxJGc9tEGnbZjregb5f2TmfHIbq0z98YvbO5vXMt8IHw nU4oH0prVQBJkCJKGq310TSWdhqpkXCj7YH2MWfB/gpCn4Euq2ZnHLdHwwWhg0NxApBj PhAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dr4L4d0W; 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 i9-20020a170906250900b008df684ab75dsi21569789ejb.595.2023.03.24.15.10.01; Fri, 24 Mar 2023 15:10:25 -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=dr4L4d0W; 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 S232017AbjCXWEj (ORCPT + 99 others); Fri, 24 Mar 2023 18:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232149AbjCXWEh (ORCPT ); Fri, 24 Mar 2023 18:04:37 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CAEC1E5F2 for ; Fri, 24 Mar 2023 15:04:25 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id p203so3953193ybb.13 for ; Fri, 24 Mar 2023 15:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679695464; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kaR8KoYOCyBpa3wXhO1e69P/3ERCtiHXhKvCkKv6lXM=; b=dr4L4d0WroGEG20/Bi+jk8wcIAbHjq36FQoGokCOOOUiXou4/rLD630Fa7NkGfiNHM F8aMEsCImFl07V1c1jf32cNJnvPiYG8wxgp84ZvL0plICJY8a+0D+eMRMiiQ7qPLMYZG 8OvLaVnZWVPlHDhe/RMyvMMnTIkOwmxjotskiL1e7IoWSnitaQPJ3CXt1+cjoa83eB51 RQxZT0MwiMFJPIvSY9Fq5uygOeLurQoYncUXyKo8GPrftd5C+0vfotJiuvLXEzeIaM2j wM5O4Or/bHXwjiczKLAIiYgu/VmwSAaP8xG/W5VqwN+trJ7XFJuaUg1V8dvGXLsnAr+E nvIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679695464; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kaR8KoYOCyBpa3wXhO1e69P/3ERCtiHXhKvCkKv6lXM=; b=LjBOcDzgsmB4J5zRN6GjdO+XhVX21qbLbcjH/E5/WyBLPeDz401EFCVm0Am10M4h2b Otqn4havH3Xfym9GlYNRxmJnvLL5jtKkcXbYAZFa3396LVDMnJeGedLzcYkGFRt9l5IZ vQgPi7d/WVRzUAuAeLa7n+HERTD4uJ9/xGdP56HI2bZYgh1c5Z30a9/O2nFD5VAr+bnW QxdFJLCrqsf6gfIcSgQ6VLJ2JNSWs+Li0osdwLavaPeQ9rtqUetzGt9Sexp1Zz9lMwP7 tuakANNDOzZvRadTdRQOc3YgDeXQQWO4udl0nyUf9PH4ttAG1fLlZQpQ0wf/5vy33cl5 M1XA== X-Gm-Message-State: AAQBX9cuRE9ZpJP0Xns5s5XfZfIWYTxGTEg5R71Xz0mmHca/4mAP3J8Y xoQbBCSHOLg4Cr2n0K2MAz1P80OuF7KxbsSSxvbmgg== X-Received: by 2002:a05:6902:168d:b0:b6c:2d28:b3e7 with SMTP id bx13-20020a056902168d00b00b6c2d28b3e7mr2295587ybb.9.1679695464535; Fri, 24 Mar 2023 15:04:24 -0700 (PDT) MIME-Version: 1.0 References: <20230306100722.28485-1-johan+linaro@kernel.org> <20230306100722.28485-6-johan+linaro@kernel.org> <90264695-131e-46b7-46db-822b0aee9801@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Sat, 25 Mar 2023 00:04:12 +0200 Message-ID: Subject: Re: [PATCH 05/10] drm/msm: fix drm device leak on bind errors To: Johan Hovold Cc: Johan Hovold , Rob Clark , Abhinav Kumar , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 Wed, 22 Mar 2023 at 09:46, Johan Hovold wrote: > > On Tue, Mar 21, 2023 at 04:54:51PM +0200, Dmitry Baryshkov wrote: > > On 06/03/2023 12:07, Johan Hovold wrote: > > > Make sure to free the DRM device also in case of early errors during > > > bind(). > > > > > > Fixes: 2027e5b3413d ("drm/msm: Initialize MDSS irq domain at probe time") > > > Cc: stable@vger.kernel.org # 5.17 > > > Cc: Dmitry Baryshkov > > > Signed-off-by: Johan Hovold > > > > Can we migrate to devm_drm_dev_alloc instead() ? Will it make code > > simpler and/or easier to handle? > > I'm just fixing the bugs here. Cleanups/rework like that can be done on > top but should not be backported as it risks introducing new issues. Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry