Page MenuHomeFreeBSD

D45181.diff
No OneTemporary

D45181.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/string.h b/sys/compat/linuxkpi/common/include/linux/string.h
--- a/sys/compat/linuxkpi/common/include/linux/string.h
+++ b/sys/compat/linuxkpi/common/include/linux/string.h
@@ -98,6 +98,18 @@
return (dst);
}
+/* See slab.h for kvmalloc/kvfree(). */
+static inline void *
+kvmemdup(const void *src, size_t len, gfp_t gfp)
+{
+ void *dst;
+
+ dst = kvmalloc(len, gfp);
+ if (dst != NULL)
+ memcpy(dst, src, len);
+ return (dst);
+}
+
static inline char *
strndup_user(const char __user *ustr, long n)
{

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 4, 5:14 PM (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13567275
Default Alt Text
D45181.diff (565 B)

Event Timeline