]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: cdns3: gadget: link trb should point to next request
authorPeter Chen <peter.chen@nxp.com>
Wed, 19 Feb 2020 14:14:54 +0000 (22:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:31 +0000 (07:18 +0100)
commit5cc981b986a61da0f38ec0c522771a80c889d598
tree0275b8050ad97aa47cb691e031b3145c1736ee5a
parentb273faff0156818cc39f62c07feaa22c38ba04b4
usb: cdns3: gadget: link trb should point to next request

commit 8a7c47fb7285b23ca259c888016513d5566fa9e8 upstream.

It has marked the dequeue trb as link trb, but its next segment
pointer is still itself, it causes the transfer can't go on. Fix
it by set its pointer as the trb address for the next request.

Fixes: f616c3bda47e ("usb: cdns3: Fix dequeue implementation")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200219141455.23257-2-peter.chen@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/gadget.c