OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Nov 2019 13:44:21 +0000 (14:44 +0100)
commit1665d668a39ecd4809f73aa7b14e58f9a2b7da60
tree2bebfa4610e318743c704c0d932e37edbb1d04e6
parent9416e6dcb6779d6b3fed24e4b53be67a63f31aeb
USB: serial: cypress_m8: fix interrupt-out transfer length

[ Upstream commit 56445eef55cb5904096fed7a73cf87b755dfffc7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/serial/cypress_m8.c