Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115738885
D45661.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
335 B
Referenced Files
None
Subscribers
None
D45661.diff
View Options
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1130,7 +1130,7 @@
int indx;
if (size > kmem_zmax)
- return (0);
+ return (round_page(size));
if (size & KMEM_ZMASK)
size = (size & ~KMEM_ZMASK) + KMEM_ZBASE;
indx = kmemsize[size >> KMEM_ZSHIFT];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 28, 10:56 PM (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17834619
Default Alt Text
D45661.diff (335 B)
Attached To
Mode
D45661: malloc: Handle large malloc sizes in malloc_size()
Attached
Detach File
Event Timeline
Log In to Comment