Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp490603pxy; Wed, 21 Apr 2021 07:49:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4/vAB5d7fawz2LUvOc7NvANdvLZU7YM2rjtZXENzH1PseLLFIIOmuCtcUpkS5OygXSdxj X-Received: by 2002:a17:907:9706:: with SMTP id jg6mr34331619ejc.515.1619016595137; Wed, 21 Apr 2021 07:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619016595; cv=none; d=google.com; s=arc-20160816; b=a5OKPKoOdiLzNoJr5XyGjMLvJ2h/2mHxyBmEbj9Bln4RaBVkJciEcXquegHRLBpYU2 QLLqUifgX95jqoSdtQ4b8JWxOtEFn9BJ/BMYNioRoZDf352Ms9hLtyokbOcGjYJX6vWq FsMyNyPhH/ATs4Ni0XlUlePlxtGSb6z3q3k7Uec6ADlkdyZ5JX+ZwquIFG6XKORWCEhk Fr15mmpbxwhaZz+jJYK5bfRhRTJid+rEDu2/I21GCGl2cKXkm4exrmjR7ZY9ClUKy4zR Ds3gw1f9UcENroLJjkZwnTHLeQRnckVU20UIrDXuvXrfejiXm5rFPfCMKouImKD0v4h2 K46A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+G0iNw3V3Hys+FVT65YoFoxbWMMrWcz1h4xLtX7a6j8=; b=YWGw6dzZduFcTswSJud855K+SWRA43/5q7S55Q0O98ixNmP+0QgdtkW24v3gfx0T0V nh6ZWpKCwB15OZYw8wlpp1APW7txEFtWZjaAaaOBlVnjq4Ve9fT+wwfPu1/fx45X2iV3 bsyHjD4RuQqgE84Ak5ukf/vwpNLJW2gnPdqE2Wc+Bow/GhRTgD5Bf+R8gQSL0YORBP41 3QqptG92djR6k/yvxumAlttLkCFyRasY11tXpGqmN8edkpVAw5Dm/eYhnm8/bXNdd7c8 mAoOPvsDJaRCsFY79DtP+Z4o3wIPge0l0enonTvD3CynS+6f0rGJ5S5+kLt+HKHhXRH2 wK0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KKGDbnxo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb8si2474194edb.103.2021.04.21.07.49.32; Wed, 21 Apr 2021 07:49:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KKGDbnxo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240141AbhDUNCa (ORCPT + 99 others); Wed, 21 Apr 2021 09:02:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:41656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240126AbhDUNCZ (ORCPT ); Wed, 21 Apr 2021 09:02:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 111D06145C; Wed, 21 Apr 2021 13:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010112; bh=CiD6BD+dU/Ic9PBJ0+rH/lGRRwZqNAkhguZklgIkGDg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KKGDbnxoMOzJTqhuCK+sFwA05SgZm3FkxhG2ixAe2KHKGU9D6CST+ADOsmgP2q8KV 1K0YBel5rH3m94s2liLY8fzsScv/C3wnGAW8kAfBX9UuVk2fxE8PvpG/0jYPxvfLpY hTJxKPDSie5oA3LS1RNYpj8qkMQfXNJwktX9+91s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Aditya Pakki , Ben Skeggs Subject: [PATCH 017/190] Revert "drm/nouveau: fix reference count leak in nv50_disp_atomic_commit" Date: Wed, 21 Apr 2021 14:58:12 +0200 Message-Id: <20210421130105.1226686-18-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210421130105.1226686-1-gregkh@linuxfoundation.org> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit a2cdf39536b0d21fb06113f5e16692513d7bcb9c. Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota). Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase. Cc: Aditya Pakki Cc: Ben Skeggs Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 1c9c0cdf85db..8ae298ab1cfb 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -2320,10 +2320,8 @@ nv50_disp_atomic_commit(struct drm_device *dev, int ret, i; ret = pm_runtime_get_sync(dev->dev); - if (ret < 0 && ret != -EACCES) { - pm_runtime_put_autosuspend(dev->dev); + if (ret < 0 && ret != -EACCES) return ret; - } ret = drm_atomic_helper_setup_commit(state, nonblock); if (ret) -- 2.31.1