usb: device_next: Fail enqueue on disabled endpoints
Do not allow enqueuing buffers on endpoints that were not enabled. Doing
so can lead to division by zero later on because the max packet size can
be 0 in disabled endpoint configuration.
Signed-off-by:
Tomasz Moń <tomasz.mon@nordicsemi.no>
Loading
Please sign in to comment