« Previous | Next » 

Revision 8b2a04ee

ID8b2a04eeb95212305d3a39170e1c4bc3dbe45e8a

Added by Paolo Bonzini over 12 years ago

scsi: do not overwrite memory on REQUEST SENSE commands with a large buffer

Other scsi_target_reqops commands were careful about not using r->cmd.xfer
directly, and instead always cap it to a fixed length. This was not done
for REQUEST SENSE, and this patch fixes it.

Reported-by: Blue Swirl <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences