Page MenuHomeFreeBSD

D37611.diff
No OneTemporary

D37611.diff

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

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)

Event Timeline