usb: renesas_usbhs: Clear pipe running flag in usbhs_pkt_pop()
commit9917f0e3cd
upstream. Should clear the pipe running flag in usbhs_pkt_pop(). Otherwise, we cannot use this pipe after dequeue was called while the pipe was running. Fixes:8355b2b308
("usb: renesas_usbhs: fix the behavior of some usbhs_pkt_handle") Reported-by: Tho Vu <tho.vu.wh@renesas.com> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Link: https://lore.kernel.org/r/1612183640-8898-1-git-send-email-yoshihiro.shimoda.uh@renesas.com Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4d1d959348
commit
2a968ab0d2
@ -126,6 +126,7 @@ struct usbhs_pkt *usbhs_pkt_pop(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
usbhs_pipe_clear_without_sequence(pipe, 0, 0);
|
usbhs_pipe_clear_without_sequence(pipe, 0, 0);
|
||||||
|
usbhs_pipe_running(pipe, 0);
|
||||||
|
|
||||||
__usbhsf_pkt_del(pkt);
|
__usbhsf_pkt_del(pkt);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user