mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
usb: cdnsp: Fix incorrect status for control request
commit99ea221f2eupstream. Patch fixes incorrect status for control request. Without this fix all usb_request objects were returned to upper drivers with usb_reqest->status field set to -EINPROGRESS. Fixes:3d82904559("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver") cc: <stable@vger.kernel.org> Reported-by: Ken (Jian) He <jianhe@ambarella.com> Reviewed-by: Peter Chen <peter.chen@kernel.org> Signed-off-by: Pawel Laszczak <pawell@cadence.com> Link: https://lore.kernel.org/r/20211207091838.39572-1-pawell@gli-login.cadence.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5cb5c3e1b1
commit
ed89521e2d
@@ -1029,6 +1029,8 @@ static void cdnsp_process_ctrl_td(struct cdnsp_device *pdev,
|
||||
return;
|
||||
}
|
||||
|
||||
*status = 0;
|
||||
|
||||
cdnsp_finish_td(pdev, td, event, pep, status);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user