From: Bjørn Mork <bjorn@xxxxxxx> Date: Fri, 2 May 2014 23:27:00 +0200 > Commit 4d619f625a60 ("net: cdc_ncm: no point in filling up the NTBs > if we send ZLPs") changed the padding logic for devices with the ZLP > flag set. This meant that frames of any size will be sent without > additional padding, except for the single byte added if the size is > a multiple of the USB packet size. But if the unpadded size is > identical to the maximum frame size, and the maximum size is a > multiplum of the USB packet size, then this one-byte padding will > overflow the buffer. > > Prevent padding if already at maximum frame size, letting usbnet > transmit a ZLP instead in this case. > > Fixes: 4d619f625a60 ("net: cdc_ncm: no point in filling up the NTBs if we send ZLPs") > Reported by: Yu-an Shih <yshih@xxxxxxxxxx> > Signed-off-by: Bjørn Mork <bjorn@xxxxxxx> > --- > Please add this to the stable v3.13 and v3.14 queues as well. Thanks. Applied and queued up for -stable, thanks. -- 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