In the Linux kernel, the following vulnerability has been resolved: pciiounmap(): Fix MMIO mapping leak The #ifdef ARCHHASGENERICIOPORT_MAP accidentally also guards iounmap(), which means MMIO mappings are leaked. Move the guard so we call iounmap() for MMIO mappings.