staging: vt6656: limit reg output to block size
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 20 Dec 2019 21:15:24 +0000 (21:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jan 2020 10:46:57 +0000 (11:46 +0100)
commit69cc1f925e1aa74b96e2ace67e3453a50d091d2f
tree61b4eba9b3108e9ca19f2a1266211902abe130b3
parent7de6155c8968a3342d1bef3f7a2084d31ae6e4be
staging: vt6656: limit reg output to block size

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>
drivers/staging/vt6656/baseband.c
drivers/staging/vt6656/usbpipe.c
drivers/staging/vt6656/usbpipe.h