Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157434018
D14955.id41048.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
613 B
Referenced Files
None
Subscribers
None
D14955.id41048.diff
View Options
Index: sys/powerpc/ofw/ofw_real.c
===================================================================
--- sys/powerpc/ofw/ofw_real.c
+++ sys/powerpc/ofw/ofw_real.c
@@ -211,9 +211,11 @@
mtx_lock(&of_bounce_mtx);
- of_bounce_virt = contigmalloc(4 * PAGE_SIZE, M_OFWREAL, 0, 0,
+ of_bounce_virt = contigmalloc(4 * PAGE_SIZE, M_OFWREAL, M_NOWAIT, 0,
ulmin(platform_real_maxaddr(), BUS_SPACE_MAXADDR_32BIT), PAGE_SIZE,
4 * PAGE_SIZE);
+ if (of_bounce_virt == NULL)
+ panic("Not able to allocated contiguous memory\n");
of_bounce_phys = vtophys(of_bounce_virt);
of_bounce_size = 4 * PAGE_SIZE;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 22, 10:27 AM (6 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33418712
Default Alt Text
D14955.id41048.diff (613 B)
Attached To
Mode
D14955: powerpc/ofw: Fix malloc inside lock
Attached
Detach File
Event Timeline
Log In to Comment