[PATCH 6.12 230/277] PCI: endpoint: pci-epf-test: Add NULL check for DMA channels before release