[PATCH 6.17 552/563] PCI: endpoint: pci-epf-test: Add NULL check for DMA channels before release