]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ACM gadget: fix endianness in notifications
authorOliver Neukum <oneukum@suse.com>
Tue, 14 Mar 2017 11:09:56 +0000 (12:09 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 6 Apr 2017 08:25:11 +0000 (09:25 +0100)
commitc242f300d9a328ddf15e9aa3d0fdccd013ffc393
treeefe75578ee113954d598b14375649a9db5824c49
parent4636bb82ea2a883c43dca36b689a750d0863eb8b
ACM gadget: fix endianness in notifications

BugLink: http://bugs.launchpad.net/bugs/1677600
commit cdd7928df0d2efaa3270d711963773a08a4cc8ab upstream.

The gadget code exports the bitfield for serial status changes
over the wire in its internal endianness. The fix is to convert
to little endian before sending it over the wire.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Tested-by: 家瑋 <momo1208@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/usb/gadget/function/f_acm.c