]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 28 Nov 2019 04:59:27 +0000 (23:59 -0500)
commit3ce45cc0b634e48535b3f4957f7cba286a4a4258
treefaa623f996b0b22f135c592129490832d144b2a0
parentf4f21be6a3559cc852710241df58c23d134399e8
USB: serial: cypress_m8: fix interrupt-out transfer length

BugLink: https://bugs.launchpad.net/bugs/1854216
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/serial/cypress_m8.c