Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132574272
D36686.id110898.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.id110898.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
Sun, Oct 19, 2:31 AM (28 m, 11 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23906072
Default Alt Text
D36686.id110898.diff (597 B)
Attached To
Mode
D36686: LinuxKPI: add DMA_MAPPING_ERROR
Attached
Detach File
Event Timeline
Log In to Comment