Skip to content

Commit

Permalink
usbdev/cdcacm: Fix read queue counter in shutdown
Browse files Browse the repository at this point in the history
nrdq is already set 0 in resetconfig.

Signed-off-by: Jouni Ukkonen <[email protected]>
  • Loading branch information
joukkone committed Oct 8, 2024
1 parent efdb432 commit 3775fe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/usbdev/cdcacm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,10 @@ static void cdcacm_rdcomplete(FAR struct usbdev_ep_s *ep,
case -ESHUTDOWN: /* Disconnection */
{
usbtrace(TRACE_CLSERROR(USBSER_TRACEERR_RDSHUTDOWN), 0);
priv->nrdq--;
if (priv->nrdq != 0)
{
priv->nrdq--;
}
}
break;

Expand Down

0 comments on commit 3775fe7

Please sign in to comment.