Skip to content

Commit 6003d37

Browse files
committed
Revert "video: imsttfb: fix potential NULL pointer dereferences"
commit ed04fe8 upstream. This reverts commit 1d84353. 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 commit here, while technically correct, did not fully handle all of the reported issues that the commit stated it was fixing, so revert it until it can be "fixed" fully. Note, ioremap() probably will never fail for old hardware like this, and if anyone actually used this hardware (a PowerMac era PCI display card), they would not be using fbdev anymore. Cc: Kangjie Lu <kjlu@umn.edu> Cc: Aditya Pakki <pakki001@umn.edu> Cc: Finn Thain <fthain@telegraphics.com.au> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Reviewed-by: Rob Herring <robh@kernel.org> Fixes: 1d84353 ("video: imsttfb: fix potential NULL pointer dereferences") Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210503115736.2104747-67-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4baaa49 commit 6003d37

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/video/fbdev/imsttfb.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,11 +1512,6 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
15121512
info->fix.smem_start = addr;
15131513
info->screen_base = (__u8 *)ioremap(addr, par->ramdac == IBM ?
15141514
0x400000 : 0x800000);
1515-
if (!info->screen_base) {
1516-
release_mem_region(addr, size);
1517-
framebuffer_release(info);
1518-
return -ENOMEM;
1519-
}
15201515
info->fix.mmio_start = addr + 0x800000;
15211516
par->dc_regs = ioremap(addr + 0x800000, 0x1000);
15221517
par->cmap_regs_phys = addr + 0x840000;

0 commit comments

Comments
 (0)