Skip to content
Snippets Groups Projects
Commit 12b69878 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

usb/msd: add usb_msd_fatal_error() and fix guest-triggerable assert


Add handler for fatal errors.  Moves device into error state where it
stops responding until the guest resets it.

Guest can send illegal requests where scsi command and usb packet
transfer directions are inconsistent.  Use the new usb_msd_fatal_error()
function instead of assert() in that case.

Reported-by: default avatarQiang Liu <cyruscyliu@gmail.com>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Tested-by: default avatarQiang Liu <cyruscyliu@gmail.com>
Message-Id: <20220830063827.813053-3-kraxel@redhat.com>
parent cea5aa85
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment