Re: [PATCH] Fix endpoint overflow in fsl_udc_core

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

 



Hello.

On 11/25/2011 09:09 PM, Matthieu CASTET wrote:

   The patch description seems somewhat unclear, and there's some typos too...

While reusing the driver fsl_udc_core on a chipidea core with 16 endpoint, we

   s/endpoint/endpoints/

encounter a crash.

The max_ep is the number of endpoint * 2 (32 in our case).

But in dtd_complete_irq, we do again * 2,  we end up scaning for 32

   s/scaning/scanning.

endpoints and deference wrong memory.

   Dereference?

The same problem seems to happen in USB_REQ_SET_FEATURE (the pipe number
should be 0 and max_ep/2 - 1)

   Between 0 and max_ep/2 - 1?

Signed-off-by: Matthieu CASTET<matthieu.castet@xxxxxxxxxx>

WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux