提交 7913c21a 编写于 作者: A Alan Cox 提交者: Greg Kroah-Hartman

Staging: sep: fix time handler

Cleaning up the code reveals an obvious thinko
Signed-off-by: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 0a18d7b5
......@@ -2143,7 +2143,9 @@ static int sep_get_time_handler(unsigned long arg)
struct sep_driver_get_time_t command_args;
error = sep_set_time(&command_args.time_physical_address, &command_args.time_value);
error = copy_to_user((void *) arg, (void *) &command_args, sizeof(struct sep_driver_get_time_t));
if (error == 0)
error = copy_to_user((void __user *)arg,
&command_args, sizeof(struct sep_driver_get_time_t));
return error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册