Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164819143
D22127.id63590.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
723 B
Referenced Files
None
Subscribers
None
D22127.id63590.diff
View Options
Index: head/sys/compat/linuxkpi/common/src/linux_pci.c
===================================================================
--- head/sys/compat/linuxkpi/common/src/linux_pci.c
+++ head/sys/compat/linuxkpi/common/src/linux_pci.c
@@ -500,7 +500,7 @@
linux_dma_trie_alloc(struct pctrie *ptree)
{
- return (uma_zalloc(linux_dma_trie_zone, 0));
+ return (uma_zalloc(linux_dma_trie_zone, M_NOWAIT));
}
static void
@@ -569,7 +569,10 @@
if (bus_dma_id_mapped(priv->dmat, phys, len))
return (phys);
- obj = uma_zalloc(linux_dma_obj_zone, 0);
+ obj = uma_zalloc(linux_dma_obj_zone, M_NOWAIT);
+ if (obj == NULL) {
+ return (0);
+ }
DMA_PRIV_LOCK(priv);
if (bus_dmamap_create(priv->dmat, 0, &obj->dmamap) != 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 5, 5:01 AM (7 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35954042
Default Alt Text
D22127.id63590.diff (723 B)
Attached To
Mode
D22127: Add missing M_NOWAIT flag
Attached
Detach File
Event Timeline
Log In to Comment