Page MenuHomeFreeBSD

D14955.id41048.diff
No OneTemporary

D14955.id41048.diff

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

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)

Event Timeline