Re: [PATCH] usb:host: fix divide-by-zero in function fhci_queue_urb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 09, 2019 at 10:37:12PM +0800, zhuyan wrote:
> In function fhci_queue_urb, the divisor of expression
> (urb->transfer_buffer_length % usb_maxpacket(urb->dev, urb->pipe,
> usb_pipeout(urb->pipe))) may be zero.

How can you hit that?

> When it is zero, unexpected results may occur, so it is necessary to
> ensure that the divisor is not zero.
> 
> Signed-off-by: zhuyan <zhuyan34@xxxxxxxxxx>

I need a "Full" name here, not just a single name.  Whatever you use to
sign documents is good.

thanks,

greg k-h



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux