Recall: [PATCH] xhci: remove unused variable 'addr' in inc_deq() and inc_enq().

2013-12-15 Thread Wang, Lin X
Wang, Lin X would like to recall the message, "[PATCH] xhci: remove unused variable 'addr' in inc_deq() and inc_enq().".-- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo i

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

2013-12-15 Thread Wang, Lin X
In function last_trb() and last_trb_on_last_seg(), incorrect array index value 'TRBS_PER_SEGMENT' is used to determine the last element in an event ring segment, which lead to the out-of-bounds of index. But according to the current logic of event ring operation, this "bug" brings no problems an

[PATCH] xhci: remove unused variable 'addr' in inc_deq() and inc_enq()

2013-12-15 Thread Wang, Lin X
This patch removes the variable 'addr' assigned but never used in function inc_deq() and inc_enq(). Signed-off-by: Lin Wang --- drivers/usb/host/xhci-ring.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index d26cd94..afa28c

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

2013-12-16 Thread Wang, Lin X
xhci_trb_virt_to_dma(ring->deq_seg, ring->dequeue); } Thanks & Br, Lin -Original Message- From: Sarah Sharp [mailto:sarah.a.sh...@linux.intel.com] Sent: Tuesday, December 17, 2013 3:50 AM To: David Laight Cc: Lin; Wang, Lin X; linux-usb@vger.kernel.org Subject: Re: [PAT