aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-03-08 16:03:00 +0000
committerJohan Hovold <johan@kernel.org>2017-03-13 16:55:41 +0100
commitd0559a2f294c9b50d7795a8362931f0db8953de1 (patch)
tree0c3943246b8cd960371318dcf2bb9130a06feae0 /tools/perf/scripts/python/bin/stackcollapse-report
parentUSB: serial: ftdi_sio: only allow valid latency timer values (diff)
downloadlinux-d0559a2f294c9b50d7795a8362931f0db8953de1.tar.gz
linux-d0559a2f294c9b50d7795a8362931f0db8953de1.zip
USB: serial: ftdi_sio: only allow valid event_char values
The "event_char" device attribute value, when written, is interpreted as an enable bit in bit 8, and an "event character" in bits 7 to 0. Return an error -EINVAL for out-of-range values. Use kstrtouint() to parse the integer instead of the obsolete simple_strtoul(). Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions