On 24.11.2016 13:03, Felipe Balbi wrote:
Hi,
Mathias Nyman <mathias.ny...@linux.intel.com> writes:
+ /* are any devices using this tt_info? */
+ for (i = 1; i < HCS_MAX_SLOTS(xhci->hcs_params1); i++) {
off-by-one here ? Why is i starting from 1?
+ vdev = xhci->devs[i];
slit_id 0 is reserved and xhci->devs[0] is not used, so ne need to
check it.
hmm... it's reserved for the HW, sure. Do you need to over allocate the
array by 1 just to keep this first member unused? Couldn't you handle
the +1/-1 (depending on the case) in xhci driver itself? Saves a bit of
memory there.
There are many things that needs fixing in this area, but not in this patch
-Mathias
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html