Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp503953pxy; Wed, 21 Apr 2021 08:05:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzoARtgDEllvobO57VyjRtv+DfgP3eqcql3GQi9DH0jqlq7jQSaD+hvZtKOZn2v0M/b3/c X-Received: by 2002:a17:90a:b105:: with SMTP id z5mr11441953pjq.187.1619017549938; Wed, 21 Apr 2021 08:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619017549; cv=none; d=google.com; s=arc-20160816; b=VmVCsH1DQ8m75MPsc8B/80zTE1G4XnMB1bl+ozi9s/Lf4YM6+zXobZYFb/biSIfYFk DNGTQQ+oNBnhFVpQp5IOOOoDTM/tIys6fUumjegrSEm2FSlP2fh68U9Axw0HDM4uZHSG yrum0qQIZT0iYvwv8/Jy3gofkfL0CmWXdyaQMp+ZUDXhzNCTMrY2HBIy8wBoOSi/RMIT 5Hd7yO4KD4e/1mwglkF4gi7XOQsjgLzFK1k9UpZcBr4aBXhPfhVF6ySwUNAhHFIkmtuK 5g2VSdpL6BjlOD4BTxoJJF/CVou4kkFv1TwhgL4LMK52ZDDGMYKy59SKpi5apnhw81z0 eTxQ== 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=BgUo4Ovy8QcOMxPTx+5KsIPP+aBXY9ZG223V50kZo9Y=; b=JZ/JleSTmTmEuepi2G3N3g/h2opShMtXq5anz5fspkWjtjkCYBlXkCJQv0U97fVXwi igCZsi2I0+ripq0tfMb28SiYy2aEiUnTrxSiKv7odzLQGh/5beI59CoXTBN3Sdk9Rc83 qSCmtM6tpUfCsoy8KvacXKNsv6kLYdqclmGLKDRzA2n1L2To+2hIuqPRH3HEWFSZuuix rLqlF6hfEaV9B8XZKp8TDOTxIad0KucbaohEE4LpGFzsG31LzpayEFiQ9CxVIZe5uWcX wxuiz1K/29zsQeOQPFFLTFwIIgjv/ohLQCmLV8zeiuJRHqSVH2IiqNN4vjEs1QFL6cdh OBUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EltPdJn6; 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 185si3500201pgj.455.2021.04.21.08.05.34; Wed, 21 Apr 2021 08:05:49 -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=EltPdJn6; 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 S240428AbhDUNEX (ORCPT + 99 others); Wed, 21 Apr 2021 09:04:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:44060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240537AbhDUNDz (ORCPT ); Wed, 21 Apr 2021 09:03:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EC6B26144B; Wed, 21 Apr 2021 13:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010202; bh=s+XpiWC2iSLw9hZxfJZYI1ni1c/CY2Y1Js+SRzvs2dI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EltPdJn6DCUnFR9D4kFx5S5Dhgk97VnC/N/YsyaLJpSc0XiZtG8136+f0IJUZ2qx4 JSIMEW01REUCbxddQfwOfxTKmmp6sUnbKnRqh5vXC+iFXrPBU/h9HhsTNvidQ7ZF0X kukOBG/3SRECrZM2ed0c2Iipkp2oD0sGlHWn40Sk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Qiushi Wu , Chris Wilson Subject: [PATCH 049/190] Revert "agp/intel: Fix a memory leak on module initialisation failure" Date: Wed, 21 Apr 2021 14:58:44 +0200 Message-Id: <20210421130105.1226686-50-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 b975abbd382fe442713a4c233549abb90e57c22b. 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: Qiushi Wu Cc: Chris Wilson Cc: Chris Wilson Cc: https Signed-off-by: Greg Kroah-Hartman --- drivers/char/agp/intel-gtt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c index 5bfdf222d5f9..4b34a5195c65 100644 --- a/drivers/char/agp/intel-gtt.c +++ b/drivers/char/agp/intel-gtt.c @@ -304,10 +304,8 @@ static int intel_gtt_setup_scratch_page(void) if (intel_private.needs_dmar) { dma_addr = pci_map_page(intel_private.pcidev, page, 0, PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); - if (pci_dma_mapping_error(intel_private.pcidev, dma_addr)) { - __free_page(page); + if (pci_dma_mapping_error(intel_private.pcidev, dma_addr)) return -EINVAL; - } intel_private.scratch_page_dma = dma_addr; } else -- 2.31.1