Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151719414
D25657.id74419.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
579 B
Referenced Files
None
Subscribers
None
D25657.id74419.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/string.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/string.h
+++ sys/compat/linuxkpi/common/include/linux/string.h
@@ -103,6 +103,9 @@
char *retval;
size_t len;
+ if (string == NULL)
+ return (NULL);
+
len = strlen(string) + 1;
retval = kmalloc(len, gfp);
if (retval != NULL)
@@ -115,6 +118,9 @@
{
char *retval;
+ if (string == NULL)
+ return (NULL);
+
retval = kmalloc(len + 1, gfp);
if (retval != NULL)
strncpy(retval, string, len);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 11, 6:18 AM (14 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31272886
Default Alt Text
D25657.id74419.diff (579 B)
Attached To
Mode
D25657: linuxkpi: Ignore NULL passed to string parametr of kstrdup()
Attached
Detach File
Event Timeline
Log In to Comment