On Mon, Jun 16, 2025 at 02:52:15PM +0200, Daniel Gomez wrote: > It should be valid already. But if the initialized value at line 160 can be > changed through the previous code then, this should suffice: Why? If pci_p2pdma_state returns something other than PCI_P2PDMA_MAP_BUS_ADDR or PCI_P2PDMA_MAP_THRU_HOST_BRIDGE, BLK_STS_INVAL should be propagated up the callchain.