mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
USBMSC: Fix length of mode6 sense reply packet.
This commit is contained in:
@@ -827,7 +827,7 @@ static int inline usbmsc_cmdmodesense6(FAR struct usbmsc_dev_s *priv,
|
||||
{
|
||||
/* Store the mode data length and return the total message size */
|
||||
|
||||
mph->mdlen = mdlen - 1;
|
||||
mph->mdlen = mdlen + SCSIRESP_MODEPARAMETERHDR6_SIZEOF - 1;
|
||||
priv->nreqbytes = mdlen + SCSIRESP_MODEPARAMETERHDR6_SIZEOF;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user