Skip to content

Commit 0f4e71f

Browse files
committed
Revert "char: hpet: fix a missing check of ioremap"
[ Upstream commit 566f532 ] This reverts commit 13bd14a. 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 <kjlu@umn.edu> Link: https://lore.kernel.org/r/20210503115736.2104747-29-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 4d2b8fc commit 0f4e71f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/char/hpet.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,8 +969,6 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
969969
if (ACPI_SUCCESS(status)) {
970970
hdp->hd_phys_address = addr.address.minimum;
971971
hdp->hd_address = ioremap(addr.address.minimum, addr.address.address_length);
972-
if (!hdp->hd_address)
973-
return AE_ERROR;
974972

975973
if (hpet_is_known(hdp)) {
976974
iounmap(hdp->hd_address);

0 commit comments

Comments
 (0)