]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: vt6656: limit reg output to block size
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 20 Dec 2019 21:15:24 +0000 (21:15 +0000)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commite72e20d1e0c93422340e7b1f5b05637f09c9c3a2
treedc077458a80b7f0f14ec2ee13a6d2bb3ee6fb98f
parent901161235e2e2d64193d824b2b5e1a0cfcdb5fd2
staging: vt6656: limit reg output to block size

BugLink: https://bugs.launchpad.net/bugs/1862227
commit 69cc1f925e1aa74b96e2ace67e3453a50d091d2f upstream.

vnt_control_out appears to fail when BBREG is greater than 64 writes.

Create new function that will relay an array in no larger than
the indicated block size.

It appears that this command has always failed but was ignored by
driver until the introduction of error checking.

Cc: stable <stable@vger.kernel.org> # v5.3+
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/a41f0601-df46-ce6e-ab7c-35e697946e2a@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/staging/vt6656/baseband.c
drivers/staging/vt6656/usbpipe.c
drivers/staging/vt6656/usbpipe.h