Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109954616
D25657.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
590 B
Referenced Files
None
Subscribers
None
D25657.diff
View Options
Index: head/sys/compat/linuxkpi/common/include/linux/string.h
===================================================================
--- head/sys/compat/linuxkpi/common/include/linux/string.h
+++ head/sys/compat/linuxkpi/common/include/linux/string.h
@@ -103,6 +103,8 @@
char *retval;
size_t len;
+ if (string == NULL)
+ return (NULL);
len = strlen(string) + 1;
retval = kmalloc(len, gfp);
if (retval != NULL)
@@ -115,6 +117,8 @@
{
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
Wed, Feb 12, 4:47 PM (19 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16613206
Default Alt Text
D25657.diff (590 B)
Attached To
Mode
D25657: linuxkpi: Ignore NULL passed to string parametr of kstrdup()
Attached
Detach File
Event Timeline
Log In to Comment