summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-10-19 10:55:16 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-10 10:22:16 +0100
commitd837ad15b8af447fe4eddbdd9554ede52953f1cb (patch)
tree50d4d7e4a137ad7d551f04dd68095fe1ad671dae /tools/perf/scripts/python/call-graph-from-postgresql.py
parent39407c3a7a1a94a8abfbaf63155537102e16f318 (diff)
vt: keyboard, simplify vt_kdgkbsent
commit 6ca03f90527e499dd5e32d6522909e2ad390896b upstream. Use 'strlen' of the string, add one for NUL terminator and simply do 'copy_to_user' instead of the explicit 'for' loop. This makes the KDGKBSENT case more compact. The only thing we need to take care about is NULL 'func_table[i]'. Use an empty string in that case. The original check for overflow could never trigger as the func_buf strings are always shorter or equal to 'struct kbsentry's. Cc: <stable@vger.kernel.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20201019085517.10176-1-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions