aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2018-05-29 22:57:38 +1000
committerMichael Ellerman <[email protected]>2018-06-03 20:43:41 +1000
commit6bcdd2972b9f6ebda9ae5c7075e2d59770dbbf12 (patch)
treea47f47381f5dbc5375f0584a132ae57b5fa947d1 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent20b344971433da7bcd19265e5dc00a4d0df5e77e (diff)
powerpc/ptrace: Use copy_{from, to}_user() rather than open-coding
In PPC_PTRACE_GETHWDBGINFO and PPC_PTRACE_SETHWDEBUG we do an access_ok() check and then __copy_{from,to}_user(). Instead we should just use copy_{from,to}_user() which does all that for us and is less error prone. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Reviewed-by: Samuel Mendoza-Jonas <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions