Home
last modified time | relevance | path

Searched hist:d0559a2f294c9b50d7795a8362931f0db8953de1 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/serial/
H A Dftdi_sio.cdiff d0559a2f294c9b50d7795a8362931f0db8953de1 Wed Mar 08 10:03:00 CST 2017 Ian Abbott <abbotti@mev.co.uk> 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>