aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2017-03-08 16:03:00 +0000
committerJohan Hovold <[email protected]>2017-03-13 16:55:41 +0100
commitd0559a2f294c9b50d7795a8362931f0db8953de1 (patch)
tree0c3943246b8cd960371318dcf2bb9130a06feae0 /tools/perf/scripts/python/net_dropmonitor.py
parentdb9240662a44e1b7781c8dbf35631bcec7a369c6 (diff)
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 <[email protected]> Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions