Page MenuHomeFreeBSD

D56452.1795441766.diff
No OneTemporary

Authored By
Unknown
Size
437 B
Referenced Files
None
Subscribers
None

D56452.1795441766.diff

Index: sys/compat/linuxkpi/common/src/linux_slab.c
===================================================================
--- sys/compat/linuxkpi/common/src/linux_slab.c
+++ sys/compat/linuxkpi/common/src/linux_slab.c
@@ -250,6 +250,11 @@
if (ptr == NULL)
return (kmalloc(size, flags));
+ if (size == 0) {
+ kfree(ptr);
+ return (ZERO_SIZE_PTR);
+ }
+
osize = ksize(ptr);
if (size <= osize)
return (__DECONST(void *, ptr));

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 1:49 PM (22 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41932702
Default Alt Text
D56452.1795441766.diff (437 B)

Event Timeline