On Tue, Jun 06, 2017 at 09:36:50AM -0600, Shuah Khan wrote: > On 05/22/2017 04:20 AM, Yuyang Du wrote: > > From: Yuyang Du <yuyang.du@xxxxxxxxx> > > > > If we get nonpositive number of ports, there is no sense to > > continue, then fail gracefully. > > > > In addition, the commit 0775a9cbc694e8c72 ("usbip: vhci extension: > > modifications to vhci driver") introduced configurable numbers of > > controllers and ports, but we have a static port number maximum, > > MAXNPORT. If exceeded, the idev array will be overflown. We fix > > it by validating the nports to make sure the port number max is > > not exceeded. > > > > Reviewed-by: Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx> > > Signed-off-by: Yuyang Du <yuyang.du@xxxxxxxxx> > > Acked-by: Shuah Khan <shuahkh@xxxxxxxxxxxxxxx> > > Greg, > > Could you please pick this up. > > thanks, > -- Shuah Thanks a lot, Shuah. Yuyang -- 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