Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E61FCC761A6 for ; Tue, 21 Mar 2023 13:00:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230308AbjCUNAz (ORCPT ); Tue, 21 Mar 2023 09:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbjCUNAx (ORCPT ); Tue, 21 Mar 2023 09:00:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 451684AD10; Tue, 21 Mar 2023 06:00:52 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C6A8361B7D; Tue, 21 Mar 2023 13:00:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35F5BC433D2; Tue, 21 Mar 2023 13:00:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679403651; bh=B8D6tcxg6AwWwKpnpZveYJcDqvXwTVdwK/BrT8cTJoU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qLei1DH+Jz4h1XIQnNgpbQZd3+jU4dQ4RrgCf+OlAl8EGk9sEk68S2JreIDSHwv0z Tmo1/29yHxRZFpbbYp+nsVdKdckBQtQbAZvMrWTCSRe0gCAVG1CDXKtaAqptTvYuYn XtdV8FtbKrRnseZd5D4UQ/o6YLn1uIgPC+RGhk6yeXEfoFK2W0tQlaXq/MjcA84L4m fI0v3QlSuaSwO598vgR5NNXuGqVLgTQ9K1+9IqBRpcolwRh9btO2c3uz5R079yifWc w5yOZV7RgZVzXr5Arpq8mp+t1THppIqVZ/EuAHxGlRwWDP0UY6WNxwM5F+lLtvo112 J0bGVENa9uAnw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pebd1-0005wz-6j; Tue, 21 Mar 2023 14:02:15 +0100 Date: Tue, 21 Mar 2023 14:02:15 +0100 From: Johan Hovold To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov 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 Subject: Re: [PATCH 00/10] drm/msm: fix bind error handling Message-ID: References: <20230306100722.28485-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230306100722.28485-1-johan+linaro@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 06, 2023 at 11:07:12AM +0100, Johan Hovold wrote: > I had reasons to look closer at the MSM DRM driver error handling and > realised that it had suffered from a fair amount of bit rot over the > years. > > Unfortunately, I started fixing this in my 6.2 branch and failed to > notice two partial and, as it turned out, broken attempts to address > this that are now in 6.3-rc1. > > Instead of trying to salvage this incrementally, I'm reverting the two > broken commits so that clean and backportable fixes can be added in > their place. > > Included are also two related cleanups. Any further comments to these patches (except for 9/10, which should be dropped)? As the patches being reverted here were first added in 6.3-rc1 there is still time to get this into 6.3-rc (e.g. before AUTOSEL starts trying to backport them). Johan > Johan Hovold (10): > Revert "drm/msm: Add missing check and destroy for > alloc_ordered_workqueue" > Revert "drm/msm: Fix failure paths in msm_drm_init()" > drm/msm: fix NULL-deref on snapshot tear down > drm/msm: fix NULL-deref on irq uninstall > drm/msm: fix drm device leak on bind errors > drm/msm: fix vram leak on bind errors > drm/msm: fix missing wq allocation error handling > drm/msm: fix workqueue leak on bind errors > drm/msm: use drmm_mode_config_init() > drm/msm: move include directive > > drivers/gpu/drm/msm/disp/msm_disp_snapshot.c | 3 - > drivers/gpu/drm/msm/msm_drv.c | 67 +++++++++++++------- > 2 files changed, 44 insertions(+), 26 deletions(-)