linux-next/drivers/usb/isp1760
Rui Miguel Silva 8e58b7710d usb: isp1760: check maxpacketsize before using it
When checking if we need one more packet on a bulk pipe we may, even
though not probable at all, get there with a zero maxpacketsize.
In that case for sure no packet, no even a one more, will be
allocated.

This will clean the clang-analyzer warning:
drivers/usb/isp1760/isp1760-hcd.c:1856:38: warning: Division by zero [clang-analyzer-core.DivideZero]
                                && !(urb->transfer_buffer_length %

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Link: https://lore.kernel.org/r/20210819180929.1327349-3-rui.silva@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-08-26 13:30:39 +02:00
..
isp1760-core.c usb: isp1763: add peripheral mode 2021-05-21 20:05:32 +02:00
isp1760-core.h usb: isp1760: add support for isp1763 2021-05-21 20:05:32 +02:00
isp1760-hcd.c usb: isp1760: check maxpacketsize before using it 2021-08-26 13:30:39 +02:00
isp1760-hcd.h usb: isp1760: add support for isp1763 2021-05-21 20:05:32 +02:00
isp1760-if.c usb: isp1760: add support for isp1763 2021-05-21 20:05:32 +02:00
isp1760-regs.h usb: isp1763: add peripheral mode 2021-05-21 20:05:32 +02:00
isp1760-udc.c usb: isp1760: isp1760-udc: Provide missing description for 'udc' param 2021-05-27 09:45:27 +02:00
isp1760-udc.h usb: isp1763: add peripheral mode 2021-05-21 20:05:32 +02:00
Kconfig usb: isp1760: add support for isp1763 2021-05-21 20:05:32 +02:00
Makefile USB: add SPDX identifiers to all remaining Makefiles 2017-11-07 15:53:48 +01:00