Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2684768pxy; Mon, 3 May 2021 05:55:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBF5IIGXNRVEIIkFfIJDu4gpSnuJCJzAsWRIjNsNUDtDPSZvmz88WhmwqZY1mKe9WQlrTE X-Received: by 2002:a17:902:bd42:b029:ee:2ada:b6fc with SMTP id b2-20020a170902bd42b02900ee2adab6fcmr20359283plx.59.1620046556528; Mon, 03 May 2021 05:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620046556; cv=none; d=google.com; s=arc-20160816; b=ZP9z8qQnpZzCMW4mAaNMX6r1e3EBMRc2BTjS09C6vFdV8lDuNPCulBqAUjN6juFl6u tsxhOir1uIQxIl4WrEM3GJN7f4GNx9/9LbbYg9aNwaLFJS/tOb0hNwiNLjVCJvt4+rio N53V8hEhDcGSrjpcRyjlPdNlfbBoRSaFD12QxzhCfZhS9PRou9xSNZLbruLHgmx68Ef/ 3FLFqxcKVb5S5uWchVAonjNE7ZPI3p0Wrd6wzTQXVnFL1FTITouSrO/6QRTvKwrEwurI M8YehUUepgq5jbFNpJEGUhCvD9wZUESegmDLm6OI5PFinOvLiSJU4d5vaGorPe+qomuz EQqw== 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=FvKszC2DA+L9bcKf1ujame7YdiwwjF8ZpIKkNggTg4c=; b=GwKYDgfPguxLO8xnEr9Uy724YGcTp04mEysfm1T4ZSJDll5bkiKznIMgdHsIPC6/wG ANoZAsrrAnip7+8PT/xVY0UIwEt9Ebgv7Q6u/cmCiDj0+cXnKpM2N0edGvuyOllHKStu 1+UVtEh20Als7doz24WwuWDKwKDKHRzeF9Y13HHSnU9KvhYS2L6Ze5UbSozm6JgLc3m6 F11+q/7PkR1LdstJfelg4+TJGHatyKQBtoV5NIYIuBdZcsw6RyzYk51mBYeo7Va2JhL/ aqXIDnYjxU/6swkV9uLkqksfnyWDQLHaDP9hnTfQFqH2RfSDQFuStsYSIv8QmFqcpY+p rnDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JujJ2DLl; 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 k34si18065477pgi.594.2021.05.03.05.55.43; Mon, 03 May 2021 05:55:56 -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=JujJ2DLl; 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 S233493AbhECMAA (ORCPT + 99 others); Mon, 3 May 2021 08:00:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:33874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233529AbhECL7z (ORCPT ); Mon, 3 May 2021 07:59:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4B54161185; Mon, 3 May 2021 11:59:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043142; bh=oaNbVguWIhiPgAhjzz4YEESwHcEG+fgbkMy3I2ofsuQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JujJ2DLlJVgsDCduEE0DXarsozqmOhtp7VTQz+BdZzhWscDOXtIjixhvUBIOwrDVB BFHxE7M4TwAMVgDUXtC3dzWZ/7lIPpqwNog2k33tH9yTqZKfVrf98+gZadB2DPTzCy VxC38gdTx5/FBmTFG78HxIJ9icZv+VlEjo9+u0sg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , "David S . Miller" , Dominik Brodowski Subject: [PATCH 14/69] Revert "net: fujitsu: fix a potential NULL pointer dereference" Date: Mon, 3 May 2021 13:56:41 +0200 Message-Id: <20210503115736.2104747-15-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503115736.2104747-1-gregkh@linuxfoundation.org> References: <20210503115736.2104747-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 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 Signed-off-by: Greg Kroah-Hartman --- 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.31.1