Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109272504
D18914.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
534 B
Referenced Files
None
Subscribers
None
D18914.diff
View Options
Index: head/sys/dev/ocs_fc/ocs_mgmt.c
===================================================================
--- head/sys/dev/ocs_fc/ocs_mgmt.c
+++ head/sys/dev/ocs_fc/ocs_mgmt.c
@@ -851,6 +851,7 @@
if (arg_out_length > sizeof(status_str)) {
arg_out_length = sizeof(status_str);
}
+ ocs_memset(status_str, 0, sizeof(status_str));
ocs_snprintf(status_str, arg_out_length, "%d", change_status);
if (ocs_copy_to_user(arg_out, status_str, arg_out_length)) {
ocs_log_test(ocs, "copy to user failed for change_status\n");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 3, 9:25 PM (15 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16442831
Default Alt Text
D18914.diff (534 B)
Attached To
Mode
D18914: ocs_fc: Ensure that we only copy out initialized memory.
Attached
Detach File
Event Timeline
Log In to Comment