Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115908212
D36686.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
597 B
Referenced Files
None
Subscribers
None
D36686.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
--- a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
+++ b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
@@ -288,11 +288,15 @@
{
}
+#define DMA_MAPPING_ERROR (~(dma_addr_t)0)
+
static inline int
dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
{
- return (dma_addr == 0);
+ if (dma_addr == 0 || dma_addr == DMA_MAPPING_ERROR)
+ return (-ENOMEM);
+ return (0);
}
static inline unsigned int dma_set_max_seg_size(struct device *dev,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 7:00 AM (17 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17875594
Default Alt Text
D36686.diff (597 B)
Attached To
Mode
D36686: LinuxKPI: add DMA_MAPPING_ERROR
Attached
Detach File
Event Timeline
Log In to Comment