Skip to content
Permalink
Browse files

usb: drivers: usb_dc_stm32: Fix coverity issue

Fixes coverity issue CID: 198865.

Fixes #16582

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information...
finikorg authored and carlescufi committed Jun 5, 2019
1 parent 1d61bef commit d385db0884b6912eb0bf7ef150b109b6b5881c49
Showing with 2 additions and 0 deletions.
  1. +2 −0 drivers/usb/device/usb_dc_stm32.c
@@ -963,6 +963,8 @@ void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd)
LOG_DBG("");

ep_state = usb_dc_stm32_get_ep_state(EP0_OUT); /* can't fail for ep0 */
__ASSERT(ep_state, "No corresponding ep_state for EP0");

ep_state->read_count = SETUP_SIZE;
ep_state->read_offset = 0U;
memcpy(&usb_dc_stm32_state.ep_buf[EP0_IDX],

0 comments on commit d385db0

Please sign in to comment.
You can’t perform that action at this time.