diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-07-13 08:27:12 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-07-16 10:20:27 +0200 |
commit | 4084e35068772cf4f81bbae5174019f277c61084 (patch) | |
tree | 668b9d8be6e207167ce3b54f3d14788ab4536f51 /thunk.c | |
parent | 8ec1415935ff4214ef9b47448ff7ac52cfa8b77e (diff) |
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: 7ad3d51ebb8a ("usb: add short-packet handling to usb-storage driver")
Reported-by: Sai Pavan Boddu <saipava@xilinx.com>
Tested-by: Paul Zimmerman <pauldzim@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20200713062712.1476-1-kraxel@redhat.com
Diffstat (limited to 'thunk.c')
0 files changed, 0 insertions, 0 deletions