Thread (3 messages) read the whole thread 3 messages, 2 authors, 2021-08-09

Re: [RFC PATCH] usb: xhci-mtk: handle bandwidth table rollover

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2021-08-09 09:11:48
Also in: linux-arm-kernel, linux-usb, lkml

On Mon, Aug 09, 2021 at 04:59:29PM +0800, Ikjoon Jang wrote:
xhci-mtk has 64 slots for periodic bandwidth calculations and each
slot represents byte budgets on a microframe. When an endpoint's
allocation sits on the boundary of the table, byte budgets' slot
should be rolled over but the current implementation doesn't.

This patch applies a 6 bits mask to the microframe index to handle
its rollover 64 slots and prevent out-of-bounds array access.

Signed-off-by: Ikjoon Jang <redacted>
---

 drivers/usb/host/xhci-mtk-sch.c | 79 +++++++++------------------------
 drivers/usb/host/xhci-mtk.h     |  1 +
 2 files changed, 23 insertions(+), 57 deletions(-)
Why is this "RFC"?  What needs to be addressed in this change before it
can be accepted?

thanks,

greg k-h

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help