diff --git a/source/module/monitor_kernel_lib.c b/source/module/monitor_kernel_lib.c index 4ecaed2..99936c1 100644 --- a/source/module/monitor_kernel_lib.c +++ b/source/module/monitor_kernel_lib.c @@ -70,7 +70,7 @@ void diag_tsk(struct task_struct *p, variable_monitor_task *tsk_info,unsigned lo diag_variant_buffer_reserve(&load_monitor_variant_buffer, sizeof(variable_monitor_task)); printk("5\n"); - diag_variant_buffer_write_nolock(&load_monitor_variant_buffer, &tsk_info, + diag_variant_buffer_write_nolock(&load_monitor_variant_buffer, tsk_info, sizeof(variable_monitor_task)); printk("6\n"); diag_variant_buffer_seal(&load_monitor_variant_buffer);