]> 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)
committerTim Gardner <tim.gardner@canonical.com>
Thu, 30 Mar 2017 12:35:45 +0000 (06:35 -0600)
commitaceff2cede78600c976a203b6c294b1218f660ec
tree905ddf07ad35f271653f79571eff80ceb469fbad
parentde7913a7c28d99b3a857c0ef5c9f2a6ac0954843
ACM gadget: fix endianness in notifications

BugLink: http://bugs.launchpad.net/bugs/1677589
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>
drivers/usb/gadget/function/f_acm.c