diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-11-17 15:32:27 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-11-17 15:32:27 +0000 |
| commit | a5a8a091dc44b084a0545099113b21cc85813eb7 (patch) | |
| tree | 1739216db75c4ac0f7418ae0d9de5c43d646be00 | |
| parent | 3ecf0f490a6e08f8b1d9ac2145d5ab69de19b03c (diff) | |
Notes
| -rw-r--r-- | sys/ofed/include/linux/dma-mapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ofed/include/linux/dma-mapping.h b/sys/ofed/include/linux/dma-mapping.h index 39367f09db3a..882c5ffc2f55 100644 --- a/sys/ofed/include/linux/dma-mapping.h +++ b/sys/ofed/include/linux/dma-mapping.h @@ -126,7 +126,7 @@ dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, size_t align; void *mem; - if (dev->dma_mask) + if (dev != NULL && dev->dma_mask) high = *dev->dma_mask; else high = BUS_SPACE_MAXADDR_32BIT; |
