Re: [PATCH] xhci: fix array index out of the bounds in function last_trb() and last_trb_on_last_seg()

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

 



On Mon, Dec 16, 2013 at 03:20:28PM -0000, David Laight wrote:
> > I know all these difference clearly,  inc_deq() is indeed a common
> > function for different rings, but lasr_trb() & last_trb_on_last_seg()
> > inside it use different condition to determine the last trb in an
> > event ring and an non-event ring; and sorry, i still not find why last
> > trb in an event ring skipped by H/W according to the current logic.
> > 
> > Thanks!
> > 
> 
> Read the specs and the code.

State your objections clearly.

Based on my analysis, this patch will produce correct behavior with the
event ring:

http://marc.info/?l=linux-usb&m=138697807827548&w=2

Am I missing something?

Sarah Sharp
--
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