diff options
Diffstat (limited to 'Documentation/connector')
-rw-r--r-- | Documentation/connector/cn_test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/connector/cn_test.c b/Documentation/connector/cn_test.c index 3e73231695b3..be7af146dd30 100644 --- a/Documentation/connector/cn_test.c +++ b/Documentation/connector/cn_test.c | |||
@@ -124,9 +124,8 @@ static void cn_test_timer_func(unsigned long __data) | |||
124 | struct cn_msg *m; | 124 | struct cn_msg *m; |
125 | char data[32]; | 125 | char data[32]; |
126 | 126 | ||
127 | m = kmalloc(sizeof(*m) + sizeof(data), GFP_ATOMIC); | 127 | m = kzalloc(sizeof(*m) + sizeof(data), GFP_ATOMIC); |
128 | if (m) { | 128 | if (m) { |
129 | memset(m, 0, sizeof(*m) + sizeof(data)); | ||
130 | 129 | ||
131 | memcpy(&m->id, &cn_test_id, sizeof(m->id)); | 130 | memcpy(&m->id, &cn_test_id, sizeof(m->id)); |
132 | m->seq = cn_test_timer_counter; | 131 | m->seq = cn_test_timer_counter; |