In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Fix ioremap issues in lpfcsli4pcimemsetup() When iftype equals zero and pciresourcestart(pdev, PCI64BITBAR4) returns false, drblregsmemmapp is not remapped. This passes a NULL pointer to iounmap(), which can trigger a WARN() on certain arches. When iftype equals six and pciresourcestart(pdev, PCI64BITBAR4) returns true, drblregsmemmapp may has been remapped and ctrlregsmemmap_p is not remapped. This is a resource leak and passes a NULL pointer to iounmap(). To fix these issues, we need to add null checks before iounmap(), and change some goto labels.