[Bug 212995] A possible divide by zero in qh_urb_transaction

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

 



https://bugzilla.kernel.org/show_bug.cgi?id=212995

--- Comment #3 from Alan Stern (stern@xxxxxxxxxxxxxxxxxxx) ---
The code _does_ make this check.  See usb_submit_urb(); near the start it does:

        ep = usb_pipe_endpoint(dev, urb->pipe);
        if (!ep)
                return -ENOENT;

Now if you want to make this a little clearer, you could submit a patch that
changes the code in qh_urb_transaction() to do this:

maxpacket = usb_endpoint_maxp(&urb->ep->desc);

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.



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

  Powered by Linux