diff options
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r-- | include/linux/dma-mapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 0dba7433af18..ba9114ec5d3a 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h | |||
@@ -65,7 +65,7 @@ static inline int is_buffer_dma_capable(u64 mask, dma_addr_t addr, size_t size) | |||
65 | 65 | ||
66 | static inline u64 dma_get_mask(struct device *dev) | 66 | static inline u64 dma_get_mask(struct device *dev) |
67 | { | 67 | { |
68 | if (dev->dma_mask && *dev->dma_mask) | 68 | if (dev && dev->dma_mask && *dev->dma_mask) |
69 | return *dev->dma_mask; | 69 | return *dev->dma_mask; |
70 | return DMA_32BIT_MASK; | 70 | return DMA_32BIT_MASK; |
71 | } | 71 | } |