Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157416126
D49570.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
514 B
Referenced Files
None
Subscribers
None
D49570.id.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_slab.c b/sys/compat/linuxkpi/common/src/linux_slab.c
--- a/sys/compat/linuxkpi/common/src/linux_slab.c
+++ b/sys/compat/linuxkpi/common/src/linux_slab.c
@@ -215,7 +215,7 @@
/* sizeof(struct llist_node) is used for kfree_async(). */
_s = MAX(size, sizeof(struct llist_node));
- if (_s < PAGE_SIZE)
+ if (_s <= PAGE_SIZE)
return (malloc(_s, M_KMALLOC, linux_check_m_flags(flags)));
else
return (contigmalloc(_s, M_KMALLOC, linux_check_m_flags(flags),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 22, 4:35 AM (5 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33414773
Default Alt Text
D49570.id.diff (514 B)
Attached To
Mode
D49570: LinuxKPi: lkpi___kmalloc change a < into <= for proper boundry check
Attached
Detach File
Event Timeline
Log In to Comment