aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface/efi
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface/efi')
-rw-r--r--src/interface/efi/efi_pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interface/efi/efi_pci.c b/src/interface/efi/efi_pci.c
index 7687ffb43..8c30c9514 100644
--- a/src/interface/efi/efi_pci.c
+++ b/src/interface/efi/efi_pci.c
@@ -335,6 +335,7 @@ static int efipci_dma_map ( struct dma_device *dma, struct dma_mapping *map,
int rc;
/* Sanity check */
+ assert ( map->dma == NULL );
assert ( map->offset == 0 );
assert ( map->token == NULL );
@@ -409,6 +410,7 @@ static void efipci_dma_unmap ( struct dma_device *dma,
pci_io->Unmap ( pci_io, map->token );
/* Clear mapping */
+ map->dma = NULL;
map->offset = 0;
map->token = NULL;