summaryrefslogtreecommitdiff
path: root/scripts/gfp-translate
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-01-12 16:56:20 +0300
committerJohan Hovold <johan@kernel.org>2017-01-16 18:38:56 +0300
commit8c34cb8ddfe808d557b51da983ff10c02793beb2 (patch)
tree6e74533df5c17d22996c63e78fb34deb9b42d0b3 /scripts/gfp-translate
parentb5fda434b13de8328c57421e31ac91d401c93b97 (diff)
downloadlinux-8c34cb8ddfe808d557b51da983ff10c02793beb2.tar.xz
USB: serial: quatech2: fix control-message error handling
Make sure to detect short control-message transfers when fetching modem and line state in open and when retrieving registers. This specifically makes sure that an errno is returned to user space on errors in TIOCMGET instead of a zero bitmask. Also drop the unused getdevice function which also lacked appropriate error handling. Fixes: f7a33e608d9a ("USB: serial: add quatech2 usb to serial driver") Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'scripts/gfp-translate')
0 files changed, 0 insertions, 0 deletions