USBMSC: Fix length of mode6 sense reply packet.

This commit is contained in:
Wolfgang Reißnegger 2016-11-18 16:57:24 -08:00
parent d135246a7d
commit 88539a7497
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}