Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp588751pxy; Wed, 21 Apr 2021 09:56:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl4mN/A1q7Uzu+03jrT+TXSUuRkfEwceo3ZqbZt5+BbmTtd91JCXRmcrnxZaExk8/MFtac X-Received: by 2002:a17:906:724b:: with SMTP id n11mr34087803ejk.338.1619024217642; Wed, 21 Apr 2021 09:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619024217; cv=none; d=google.com; s=arc-20160816; b=YnedY+Y9onpeRiQsWfl2HWVqgwo3GJlToxmE+Mp9WmRg8j44HP5I3k3ojgM2TWb9gB mG+uBbCQOV74u7dmQvh8RJjt05baCu+hyRdpiBNzRM0jFwpislGuLy6pL1xfL2A5GZ9w vcHUuD3f5aBe5u/2JZx5qOckS7yH/LaZjvf8igbPOf+I+LBQc4X5ghxXJtXCABbOhxcd 9y+m3FNHYAVNqGiEFppzC7S9ojCXvNHmBa4airGPwQ0f3YBpQLFmzOEK8/+W0rYIPpgr ifiJgSH+u/zLuJOM4BliwDqCsfWVPiiqziCQwVqxFffOFAORdOUekquwyWGf81FMPZ8X fGDw== 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=1DzeMEzJoBXF3cEhDXeLkwmJ4sJUr6N2hIVqNCYVufo=; b=xUxvWui2UXxPwDUevjslaSzT13hSswR2lMaOjrDV2ABJqgZM4vu2pfbLstHpRbFdTm 0PGxoUujNWTL3Bf44sPv8YJA5JsU1YsYr/ab9TTiL+jFkW58QVmnlkLOLupBIYOt9Krj zHIFhizYSBruhBDgtV+AwQ2QhegBTtE9xB4GbtUJ0CS3b9lYZ7w4DAZDHAAekKmrOSlf A9d0MTk7CtwV4ugbSllgGqMJZwPMmFcSjVaPMTu8/mUu6ox1xPtu5FLoVOdcMwoQXBw/ SV+WAGmNQGTfFCfsXk3sAEoX7cR8cVIR2sAbQj7bM/3lKqv9sN+bT32bcbD1RTpYnqJf 14EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XVEiQ1+t; 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 ds10si2818267ejc.719.2021.04.21.09.56.34; Wed, 21 Apr 2021 09:56:57 -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=XVEiQ1+t; 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 S241360AbhDUNR3 (ORCPT + 99 others); Wed, 21 Apr 2021 09:17:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:48880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241331AbhDUNIH (ORCPT ); Wed, 21 Apr 2021 09:08:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 702A461464; Wed, 21 Apr 2021 13:07:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010448; bh=0RnA7THINng5r4rLzEiNzx6YKN80iBzw2EN+VyF9vEc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XVEiQ1+t3CXpdtsjHeTiKwScHOHh+1h4Rt7MbOmTH0loeZmeebNv2SdvwgGD8e/e5 /5KDqJvU8cyyeuAjzPtvSgo+Rof9SoFtf+tiMM8XZQeIO25e4rFBf+w93XqkONMmIM Cea87+Pd45g1Y4o+jTG+Y6yJUAw9CN+fzBsg6vy8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , "David S . Miller" Subject: [PATCH 139/190] Revert "isdn: mISDNinfineon: fix potential NULL pointer dereference" Date: Wed, 21 Apr 2021 15:00:14 +0200 Message-Id: <20210421130105.1226686-140-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 d721fe99f6ada070ae8fc0ec3e01ce5a42def0d9. 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: Kangjie Lu Cc: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/isdn/hardware/mISDN/mISDNinfineon.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/isdn/hardware/mISDN/mISDNinfineon.c b/drivers/isdn/hardware/mISDN/mISDNinfineon.c index a16c7a2a7f3d..fa9c491f9c38 100644 --- a/drivers/isdn/hardware/mISDN/mISDNinfineon.c +++ b/drivers/isdn/hardware/mISDN/mISDNinfineon.c @@ -697,11 +697,8 @@ setup_io(struct inf_hw *hw) (ulong)hw->addr.start, (ulong)hw->addr.size); return err; } - if (hw->ci->addr_mode == AM_MEMIO) { + if (hw->ci->addr_mode == AM_MEMIO) hw->addr.p = ioremap(hw->addr.start, hw->addr.size); - if (unlikely(!hw->addr.p)) - return -ENOMEM; - } hw->addr.mode = hw->ci->addr_mode; if (debug & DEBUG_HW) pr_notice("%s: IO addr %lx (%lu bytes) mode%d\n", -- 2.31.1