WSL2-Linux-Kernel/drivers/comedi
Ian Abbott 31ac1cffa7 comedi: vmk80xx: fix expression for tx buffer size
commit 242439f7e2 upstream.

The expression for setting the size of the allocated bulk TX buffer
(`devpriv->usb_tx_buf`) is calling `usb_endpoint_maxp(devpriv->ep_rx)`,
which is using the wrong endpoint (should be `devpriv->ep_tx`).  Fix it.

Fixes: a23461c474 ("comedi: vmk80xx: fix transfer-buffer overflow")
Cc: Johan Hovold <johan@kernel.org>
Cc: stable@vger.kernel.org # 4.9+
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20220607171819.4121-1-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-22 14:22:03 +02:00
..
drivers comedi: vmk80xx: fix expression for tx buffer size 2022-06-22 14:22:03 +02:00
kcomedilib
Kconfig
Makefile
TODO
comedi.h
comedi_buf.c
comedi_fops.c comedi: Fix memory leak in compat_insnlist() 2021-09-21 17:53:54 +02:00
comedi_internal.h
comedi_pci.c
comedi_pci.h
comedi_pcmcia.c
comedi_pcmcia.h
comedi_usb.c
comedi_usb.h
comedidev.h
comedilib.h
drivers.c
proc.c
range.c