Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2664246pxj; Mon, 31 May 2021 07:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIbsFeJgm7z1gXDCCVU+bGqr397JhKCaVOuTiKsa+aJI7SwakLjBwzY/xobLOxei6KBhK4 X-Received: by 2002:a17:906:d7a8:: with SMTP id pk8mr23792022ejb.74.1622472290807; Mon, 31 May 2021 07:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472290; cv=none; d=google.com; s=arc-20160816; b=GuTxKQArlr6hOht6n5SXDrWygyK6k5ctNFKAse0EHIgP8ReV3dW6g/0aOrym+SsltM w2CKTe3kSO9eGlZ3MrEObyNSFeVQuynF3L77HDOX5YSO0RLYNipD/AqyPxWF0ykzXH46 Hclhnb9DJDlAMurpbFdLk6rbEGKu+qYNzxjEf8wfTD6RLKZPfMUPrgQIOEgaVknH9LXB 0wQYqOVfIu4pLKSanEmg6q9j9cGhUurSw5FhHgYLaqGuqe392iLhRMyD3pFM+godQ65w CgnyyFxORW05SKbjmkGO4P5yXIY3xgIwl58CjOFjr1kFW/jAqceeC2wh88YDRmFhFOCP tYXw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pB20YjPtT+H/lcil9dxtKp39RLUZtYL8Nx9k6/Gf4f8=; b=A/eHHgeWW4hQBSXsdUzBYwrkbbS97G+uF1gj62VYU6h3Fo/DhLY5QB9lmF8RUK2O/r Ayn9JCiJCdm+w9aPL0HvNIEF5CqA5cnvoCJY1q1/CiOsqTSxUhdthtDhKX+/uI+NJuFt qp7GYj54pKndBBB1zZAyUrNmmJTLZ7plBdsa8LxSNeWmnRW3LNeBsqw0aQdSKvhZAo55 zh/VxrRA6EUmUCbTqix0axmS0w/vqMx4AW8vP/YBW8bx6MK/CFHUMbzYAkJRcpYzRkIc PBh6yKV25AYRAcxKLI/Fk7C4uTqOgv4P2h3tceIU5OM3hDTljW+c/V62bpEjT8yV4DCe Lymg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G47usS7A; 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 l5si2104136ejg.306.2021.05.31.07.44.28; Mon, 31 May 2021 07:44:50 -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=G47usS7A; 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 S234178AbhEaOo7 (ORCPT + 99 others); Mon, 31 May 2021 10:44:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:59812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233026AbhEaN7T (ORCPT ); Mon, 31 May 2021 09:59:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 66DD26144A; Mon, 31 May 2021 13:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468157; bh=xDh8vqmsD0PqY7lkpUvW7q/+AmZ23MBZFO5QElc9QaU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G47usS7AbMo17a9AtkDd3oAvUmQnEJ6hbh+hGOCLM13Wh4m35I9gM2x5NmsfJhDGj zdrjnIjDHrEC9ZQQywn6JHSMrADTfgtfz8migfrou8ci0vSg5KWiyJmrIGN06di4Qj VR0bYg2aTssVoHedAoHE0+coY/9224IKHgMejViE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kangjie Lu , "David S. Miller" , Dominik Brodowski , Sasha Levin Subject: [PATCH 5.10 137/252] Revert "net: fujitsu: fix a potential NULL pointer dereference" Date: Mon, 31 May 2021 15:13:22 +0200 Message-Id: <20210531130702.665726757@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman [ Upstream commit 5f94eaa4ee23e80841fa359a372f84cfe25daee1 ] This reverts commit 9f4d6358e11bbc7b839f9419636188e4151fb6e4. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. The original change does not change any behavior as the caller of this function onlyu checks for "== -1" as an error condition so this error is not handled properly. Remove this change and it will be fixed up properly in a later commit. Cc: Kangjie Lu Cc: David S. Miller Reviewed-by: Dominik Brodowski Link: https://lore.kernel.org/r/20210503115736.2104747-15-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/net/ethernet/fujitsu/fmvj18x_cs.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c index a7b7a4aace79..dc90c61fc827 100644 --- a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c +++ b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c @@ -547,11 +547,6 @@ static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id) return -1; base = ioremap(link->resource[2]->start, resource_size(link->resource[2])); - if (!base) { - pcmcia_release_window(link, link->resource[2]); - return -ENOMEM; - } - pcmcia_map_mem_page(link, link->resource[2], 0); /* -- 2.30.2