summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-06-28 11:21:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-29 21:01:54 +0200
commit70cdb930f7e97e0abe4ec4ac30e63ada490ef375 (patch)
tree17dd16418b92d0804ae03336bfdde1fcf7676c16 /drivers/usb/musb
parentbabfcd947eba6e4c80a023683a37723ad43816e2 (diff)
downloadlinux-stable-70cdb930f7e97e0abe4ec4ac30e63ada490ef375.tar.gz
linux-stable-70cdb930f7e97e0abe4ec4ac30e63ada490ef375.tar.bz2
linux-stable-70cdb930f7e97e0abe4ec4ac30e63ada490ef375.zip
usb: gadget: aspeed_udc: fix handling of tx_len == 0
The bug is that we should still enter this loop if "tx_len" is zero. After adding the "last" variable, then the "chunk >= 0" condition is no longer required but I left it for readability. Fixes: c09b1f372e74 ("usb: gadget: aspeed_udc: cleanup loop in ast_dma_descriptor_setup()") Reported-by: Neal Liu <neal_liu@aspeedtech.com> Reviewed-by: Neal Liu <neal_liu@aspeedtech.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/Yrq6F5okoX1y05rT@kili Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb')
0 files changed, 0 insertions, 0 deletions