Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2746353pxj; Mon, 31 May 2021 09:41:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY3LIBxQMYgLB5ULA9+7TilokSBOvfAGWCqvFrHD59lFLZ/hCbS5qg+SN2fAgw2RQ3b2E3 X-Received: by 2002:a17:906:34d4:: with SMTP id h20mr20080673ejb.228.1622479288685; Mon, 31 May 2021 09:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622479288; cv=none; d=google.com; s=arc-20160816; b=PYHi/ZqABQBbAglh8wSNQEgQ1E1qvEdpWi7gT3zN6umLMUTqvyig0qN8DQ/sO1oqVt suhFg/01ok45ncvUMaEUFOaKaNUxvss7f2cMSQAcq7xGHgxJPvEasYmmb/fa24vtTQq3 jCxLEQ3ywnycS4OyD1goxP61TecbPBQFTUvj2/2WUIEPFBcMx5oMZmy+rSpKdvkIik+S 9DqxkKbp1n7nI8hmDZiD3hHaIGJesV2zpjplTCDjYb1Sg/k/UCmIBbPmN5uXh5EjkTRa UTrO53Gkm7BNbOZXhWZcNVzAjLfq5tZK7jeMlcfITgnq2X0nSITZlUnpaejLFa0mLmBu Dclg== 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=rtvNz9E2aoJGiDo4NWHVq4rxRIWqLcgI4d8TULvnLnU=; b=su7LLU5OBsYGba3oUTLqyzRKic99rcN5zDKCQg+DINtzMXECXmFWjZcth2Xj92KVOY pI7HAYipxp+1qUDG7NqTgp2vvicYgXiRpNOI2Fa6tHs+J59s6s3253z1N5IoVn6tn84W txkuIaddZ1aVlG31IjFLEjdqPRhIwgiJonTwz7mL+G8yeUC7eT/yvq4jcRhYKlZiauom Y5pnN7XIvgRIYmyzNllPeZPH2nlb9vC6Y+BhIdc1vvLmX1q1eifhnNzBP3kqA/OTnWVf oOC52ipD8WWATN5E052N51wlE2q/DWVrdKFE6JI4FC9CNAtx7eFNIV5BD+KtDEWJHEWB vOYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0vEXfy0N; 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 n15si14021692edy.288.2021.05.31.09.41.05; Mon, 31 May 2021 09:41:28 -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=0vEXfy0N; 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 S233849AbhEaQjx (ORCPT + 99 others); Mon, 31 May 2021 12:39:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:47910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233265AbhEaOvQ (ORCPT ); Mon, 31 May 2021 10:51:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F5CC6192B; Mon, 31 May 2021 13:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469466; bh=BW5P4etMGsgT4xI1Vez4UnzEYGNudEKWJr9HEmsIOaI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0vEXfy0Nav+RwEyxgYoP776wuu42Mmff9Rrs3CsCPuuHX7bXFw/UXq0VV+vI1WhNN m3eOxZ+OeWrbJwWvQCx7MQ/G6TsQtidRKf571yHff2kPfCFbMsmg7GS7iv81xEA8o5 hXTOGLMQtbe3oR5Eg+JoZfeD+jQjgIOa2a6hZqfY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kangjie Lu , Sasha Levin Subject: [PATCH 5.12 173/296] Revert "char: hpet: fix a missing check of ioremap" Date: Mon, 31 May 2021 15:13:48 +0200 Message-Id: <20210531130709.697639326@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@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 566f53238da74801b48e985788e5f7c9159e5940 ] This reverts commit 13bd14a41ce3105d5b1f3cd8b4d1e249d17b6d9b. 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. While this is technically correct, it is only fixing ONE of these errors in this function, so the patch is not fully correct. I'll leave this revert and provide a fix for this later that resolves this same "problem" everywhere in this function. Cc: Kangjie Lu Link: https://lore.kernel.org/r/20210503115736.2104747-29-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/char/hpet.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index ed3b7dab678d..6f13def6c172 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -969,8 +969,6 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data) if (ACPI_SUCCESS(status)) { hdp->hd_phys_address = addr.address.minimum; hdp->hd_address = ioremap(addr.address.minimum, addr.address.address_length); - if (!hdp->hd_address) - return AE_ERROR; if (hpet_is_known(hdp)) { iounmap(hdp->hd_address); -- 2.30.2