diff options
author | Wang Xiaoqiang <wangxq10@lzu.edu.cn> | 2016-04-18 10:23:29 +0300 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-04-26 21:42:03 +0300 |
commit | 4afe6495e5cb3c352d95f07512cbb227e607e2ce (patch) | |
tree | 8b3590a165e3b47f70e33d68db9b059769e7ef88 /include/linux/trace_events.h | |
parent | 6e4cf657defa8fb06dbf9ed91adb78414758f259 (diff) | |
download | linux-4afe6495e5cb3c352d95f07512cbb227e607e2ce.tar.xz |
tracing: Don't use the address of the buffer array name in copy_from_user
With the following code snippet:
...
char buf[64];
...
if (copy_from_user(&buf, ubuf, cnt))
...
Even though the value of "&buf" equals "buf", but there is no need
to get the address of the "buf" again. Use "buf" instead of "&buf".
Link: http://lkml.kernel.org/r/20160418152329.18b72bea@debian
Signed-off-by: Wang Xiaoqiang <wangxq10@lzu.edu.cn>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/trace_events.h')
0 files changed, 0 insertions, 0 deletions