|
@@ -1795,6 +1795,7 @@ static int do_write(struct fsg_dev *fsg)
|
|
|
* the bulk-out maxpacket size */
|
|
|
bh->outreq->length = bh->bulk_out_intended_length =
|
|
|
amount;
|
|
|
+ bh->outreq->short_not_ok = 1;
|
|
|
start_transfer(fsg, fsg->bulk_out, bh->outreq,
|
|
|
&bh->outreq_busy, &bh->state);
|
|
|
fsg->next_buffhd_to_fill = bh->next;
|
|
@@ -2398,6 +2399,7 @@ static int throw_away_data(struct fsg_dev *fsg)
|
|
|
* the bulk-out maxpacket size */
|
|
|
bh->outreq->length = bh->bulk_out_intended_length =
|
|
|
amount;
|
|
|
+ bh->outreq->short_not_ok = 1;
|
|
|
start_transfer(fsg, fsg->bulk_out, bh->outreq,
|
|
|
&bh->outreq_busy, &bh->state);
|
|
|
fsg->next_buffhd_to_fill = bh->next;
|
|
@@ -3029,6 +3031,7 @@ static int get_next_command(struct fsg_dev *fsg)
|
|
|
|
|
|
/* Queue a request to read a Bulk-only CBW */
|
|
|
set_bulk_out_req_length(fsg, bh, USB_BULK_CB_WRAP_LEN);
|
|
|
+ bh->outreq->short_not_ok = 1;
|
|
|
start_transfer(fsg, fsg->bulk_out, bh->outreq,
|
|
|
&bh->outreq_busy, &bh->state);
|
|
|
|