|
@@ -2964,7 +2964,7 @@ static int received_cbw(struct fsg_dev *fsg, struct fsg_buffhd *bh)
|
|
|
|
|
|
/* Is the CBW meaningful? */
|
|
|
if (cbw->Lun >= MAX_LUNS || cbw->Flags & ~USB_BULK_IN_FLAG ||
|
|
|
- cbw->Length < 6 || cbw->Length > MAX_COMMAND_SIZE) {
|
|
|
+ cbw->Length <= 0 || cbw->Length > MAX_COMMAND_SIZE) {
|
|
|
DBG(fsg, "non-meaningful CBW: lun = %u, flags = 0x%x, "
|
|
|
"cmdlen %u\n",
|
|
|
cbw->Lun, cbw->Flags, cbw->Length);
|