usb: fix storage regression
Fix the contition to figure whenever we need to wait for more data or not. Simply check the mode, if we are not in DATAIN state any more we are done already and don't need to go ASYNC. Fixes: 7ad3d51e ("usb: add short-packet handling to usb-storage driver") Reported-by: NSai Pavan Boddu <saipava@xilinx.com> Tested-by: NPaul Zimmerman <pauldzim@gmail.com> Signed-off-by: NGerd Hoffmann <kraxel@redhat.com> Message-id: 20200713062712.1476-1-kraxel@redhat.com
Showing
想要评论请 注册 或 登录