Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2717304pxy; Mon, 3 May 2021 06:34:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJUp0SG9vQ0quslULzbi3GqgKWvXVsBavrWIirMOfPn/QV4mT8/iLyKCAIi14D3MYSuxoP X-Received: by 2002:a63:5143:: with SMTP id r3mr3407754pgl.346.1620048846505; Mon, 03 May 2021 06:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620048846; cv=none; d=google.com; s=arc-20160816; b=jyvv0M4jErxRoPV/x9v5eBSNHZZ8e0pcDqVES43MtgHlpNwqp0jU0WT3wj4eN6XiYh AOCZL5cRUIt/QN7Zvw6kpanu3lsKcd4n9hOcF0vuTVWrsNoqu4uoCpg6W2AAtS5AjPa4 QfBQyd0Xo7TghtukJLjB1cVzpnCDWrT5xfYlgfMw9SbN8I+D2fUBZ2plvlrldFG3T7Jm zQpaACv9Jp+oR2pPmC9DOXcodidTttwMZK1X05aC4Fe71VcNuDyuuS1azxFJx4mAAqms 3RfQwIZJvJJ251PjZ1qSCbyHmY7DJAoz/okCKoIDqasox8iU1jRV1WEDJgPTQv5RoKnf kl4A== 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=JGNNmdAH0RZnfMCtc0ha6ZPx3EgKcu74/rhIvJWe/j8=; b=kpEnCDwuJsv+hoyaOdef4vP3XKLm8vs6tIVm+KUNeFa1dTHM7JMx3EHGaeZz4Z8PhZ lxMRIUbRoyzcdYYFSSY/Eg5HUuwpfITXE1d2BhbaYCKSUnrXdTYo1qe7E1CmMJbqfj9f t0R81LIVdAZBaF2MhlNViHEp58WD527Z8fpKlADOj+lz0eOdEdU6uQ4MQbcOkL4viQvO bofS7LalT8XmFtx2IlbxRmwAG7+Ve2gqxh7e6z93sy5J+TLAK2TLEMUIYHvyVFSR3okf KxwWoEKp5UOrQrHKgk+XQkttpzmfifpEk8MPdcDptQdgFlkpyI/23cYtW/KKodZH896l RjWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bFvngqLY; 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 o10si14293321pjt.24.2021.05.03.06.33.53; Mon, 03 May 2021 06:34:06 -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=bFvngqLY; 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 S234098AbhECMEB (ORCPT + 99 others); Mon, 3 May 2021 08:04:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:37328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234103AbhECMCQ (ORCPT ); Mon, 3 May 2021 08:02:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E23261221; Mon, 3 May 2021 12:01:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043282; bh=hrHYuoQG/ES9lfigairRLe7dmuVCWKqJF81IJz0071w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bFvngqLYw0bZDhB9D0bYhBAJY8Gn67Wv/KUC/rCKVSzqsbf0bNqNOTjMcbYSj/PqE +No1LnCiHDZOdQpfUt7q6SvNpRxLp7uYW/7J0Si8prkiqu4Z6kYSH56nSMTq8J+VYQ Pbc0YtvAkPTtnEb3uHhxc1gU6qM2eLtIDSH0re28= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Aditya Pakki , Ferenc Bakonyi , Bartlomiej Zolnierkiewicz , stable Subject: [PATCH 38/69] Revert "video: hgafb: fix potential NULL pointer dereference" Date: Mon, 3 May 2021 13:57:05 +0200 Message-Id: <20210503115736.2104747-39-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 ec7f6aad57ad29e4e66cc2e18e1e1599ddb02542. 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. This patch "looks" correct, but the driver keeps on running and will fail horribly right afterward if this error condition ever trips. So points for trying to resolve an issue, but a huge NEGATIVE value for providing a "fake" fix for the problem as nothing actually got resolved at all. I'll go fix this up properly... Cc: Kangjie Lu Cc: Aditya Pakki Cc: Ferenc Bakonyi Cc: Bartlomiej Zolnierkiewicz Fixes: ec7f6aad57ad ("video: hgafb: fix potential NULL pointer dereference") Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/hgafb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/hgafb.c b/drivers/video/fbdev/hgafb.c index 8bbac7182ad3..fca29f219f8b 100644 --- a/drivers/video/fbdev/hgafb.c +++ b/drivers/video/fbdev/hgafb.c @@ -285,8 +285,6 @@ static int hga_card_detect(void) hga_vram_len = 0x08000; hga_vram = ioremap(0xb0000, hga_vram_len); - if (!hga_vram) - goto error; if (request_region(0x3b0, 12, "hgafb")) release_io_ports = 1; -- 2.31.1