forked from len0rd/rockbox
fix send_command_result() size checking for the SCSI_REQUEST_SENSE case (thanks to Tomer Shalev, FS#10203)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20914 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
deb6b81ebe
commit
685cee87be
1 changed files with 2 additions and 1 deletions
|
@ -771,7 +771,8 @@ static void handle_scsi(struct command_block_wrapper* cbw)
|
|||
tb.sense_data->SKSV=0;
|
||||
tb.sense_data->SenseKeySpecific=0;
|
||||
logf("scsi request_sense %d",lun);
|
||||
send_command_result(tb.sense_data, sizeof(struct sense_data));
|
||||
send_command_result(tb.sense_data,
|
||||
MIN(sizeof(struct sense_data), length));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue