Merge "Perf: arm64: avoid use of uninitialized variable"
This commit is contained in:
commit
a1dcf33ce1
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2013-2014, 2017 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -124,6 +124,7 @@ static ssize_t write_enabled_perftp_file_bool(struct file *file,
|
|||
char buf[32];
|
||||
size_t buf_size;
|
||||
|
||||
buf[0] = 0;
|
||||
buf_size = min(count, (sizeof(buf)-1));
|
||||
if (copy_from_user(buf, user_buf, buf_size))
|
||||
return -EFAULT;
|
||||
|
|
Loading…
Add table
Reference in a new issue