Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: r8712u: fix control-message timeout

USB control-message timeouts are specified in milliseconds and should
specifically not vary with CONFIG_HZ.

Fixes: 2865d42c78a9 ("staging: r8712u: Add the new driver to the mainline kernel")
Cc: stable@vger.kernel.org # 2.6.37
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20211025120910.6339-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Johan Hovold and committed by
Greg Kroah-Hartman
ce494052 4cfa36d3

+1 -1
+1 -1
drivers/staging/rtl8712/usb_ops_linux.c
··· 494 494 memcpy(pIo_buf, pdata, len); 495 495 } 496 496 status = usb_control_msg(udev, pipe, request, reqtype, value, index, 497 - pIo_buf, len, HZ / 2); 497 + pIo_buf, len, 500); 498 498 if (status > 0) { /* Success this control transfer. */ 499 499 if (requesttype == 0x01) { 500 500 /* For Control read transfer, we have to copy the read