Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2707538pxj; Mon, 31 May 2021 08:44:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0XynVHS78DOGhwdgajH2sa8+1lXe5FANL/DECWJxuJMmVnaJMamivvc1/OA9AL+14E3Id X-Received: by 2002:aa7:c745:: with SMTP id c5mr26640994eds.136.1622475881038; Mon, 31 May 2021 08:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475881; cv=none; d=google.com; s=arc-20160816; b=NkFgc9C3LUqA9ysJeAKT9t92/aps+R/seD8E+wUftyGqRIoRjsEukt4HwlVD0XAJV+ VzHGm8TeJ6c/iIo62KTKA3iRS8SF7gtkFG09ISkb7LOza1UYL7/6cmapoZMKEGwzVpFM Vy2hZdUwiKhAMUEGg81GOXq2YPLtFDdtIicsF+yrt44SGzKVxiOytyWwm0nQpEYI2uwk Bg+Sl87hubeDb5AEL0kh8Yu/7ZVDccwhwIcEtmuIg6EaIEIBdm596DM46iEcaBmDNmzl 3jXiF/37jZ6VYUCcX4rIWNeNJNR9n73Ap8+tR7BD+6HGfK63pn0AFqW+6WxkTI76iWdM 5z/g== 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=3/Oj2SwvKJoIW0FjkYw6pu2yG+vK9Y4yoixJAZm13ms=; b=P5klIkSwiRZ6OtSlpxtqJnQxQpma6OIqgLi9ZRcq4WFQrPP2ttVSkyqQFUtKj54AqB LMnsu7RVAQufsbxVEGW6yCVc77Xdxxg/4roW2xF0SljLqVcQblKmGuRrMtQvawbDfbBf 2X96/QwzBDM7uhcevZ/OZwu2e2sZJkA3zqgL8JNKFXqLwu0pykXvNdhqDQlAX9v7zfMJ 0IniBaXihzaH4Pwr7iH3e/apWM1gFIveBzxJ0ry7QJA14IKqUSvBWZqlXIqzifRm2nDz UfZ/9KgBSgR/Wj+CKVEtC+DpacdNh9iIDj1ZKkUr/Yecn+MGT3cfq2ZBQGWcr9jgy0/j 3bkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uikx62fG; 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 h11si12998208ede.61.2021.05.31.08.44.18; Mon, 31 May 2021 08:44:41 -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=uikx62fG; 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 S233791AbhEaPod (ORCPT + 99 others); Mon, 31 May 2021 11:44:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:48846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232215AbhEaOZU (ORCPT ); Mon, 31 May 2021 10:25:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B21B761A25; Mon, 31 May 2021 13:46:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468785; bh=7CyjD0+tXZc9T+bQRN7EJUiSweorbaa3ZXX2/OMMEw4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uikx62fGqqxDb/T/Y/ocNbm5PiHhYGhLELebX+KCCQm9bDRxTGOMgo+57CcIhtMm4 lhFDbp9mqfb5d8cNNL7jZM0Yjs/CsIYiOFWnBtzCjdar2nTypCJM+SbdyoHiw9StyH w7pAEpJOuCKyXJfI5J2yALmEjPACX4NJw/Ww/51o= 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.4 092/177] Revert "net: fujitsu: fix a potential NULL pointer dereference" Date: Mon, 31 May 2021 15:14:09 +0200 Message-Id: <20210531130651.072491758@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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 1eca0fdb9933..a69cd19a55ae 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