USB: serial: cypress_m8: fix interrupt-out transfer length
authorJohan Hovold <johan@kernel.org>
Sun, 30 Sep 2018 16:03:11 +0000 (18:03 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 5 Oct 2018 06:58:12 +0000 (08:58 +0200)
commit56445eef55cb5904096fed7a73cf87b755dfffc7
tree528965c08c6f4b11f8310fa1e45a50ec0164c25c
parentff32d97e39e7053fdc1d316bd2e2eff70b77fdd2
USB: serial: cypress_m8: fix interrupt-out transfer length

Fix interrupt-out transfer length which was being set to the
transfer-buffer length rather than the size of the outgoing packet.

Note that no slab data was leaked as the whole transfer buffer is always
cleared before each transfer.

Fixes: 9aa8dae7b1fa ("cypress_m8: use usb_fill_int_urb where appropriate")
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cypress_m8.c