Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109807766
D37611.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
553 B
Referenced Files
None
Subscribers
None
D37611.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
@@ -362,7 +362,14 @@
unsigned long attrs)
{
- return (dma_map_sg_attrs(dev, sgt->sgl, sgt->nents, dir, attrs));
+ int nents = dma_map_sg_attrs(dev, sgt->sgl, sgt->nents, dir, attrs);
+
+ if (nents < 0) {
+ return nents;
+ } else {
+ sgt->nents = nents;
+ return 0;
+ }
}
static inline void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 10, 7:26 PM (7 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16582423
Default Alt Text
D37611.diff (553 B)
Attached To
Mode
D37611: linuxkpi: Fix return value of dma_map_sgtable
Attached
Detach File
Event Timeline
Log In to Comment