Skip to content

[Coverity CID :195758]Uninitialized variables in /drivers/usb/device/usb_dc_nrfx.c #14422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aasthagr opened this issue Mar 12, 2019 · 0 comments
Assignees
Labels
area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: medium Medium impact/importance bug

Comments

@aasthagr
Copy link
Collaborator

Static code scan issues seen in File: /drivers/usb/device/usb_dc_nrfx.c
Category: Uninitialized variables
Function: usbd_event_handler
Component: Drivers
CID: 195758
Please fix or provide comments to square it off in coverity in the link: https://scan9.coverity.com/reports.htm#v32951/p12996

@galak galak added Coverity A Coverity detected issue or its fix priority: medium Medium impact/importance bug area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug and removed bug The issue is a bug, or the PR is fixing a bug labels Mar 12, 2019
@ioannisg ioannisg self-assigned this Mar 14, 2019
ioannisg added a commit to ioannisg/zephyr that referenced this issue Mar 14, 2019
Initialize a local struct variable to zero, to suppress
un-initialized variable error.

Fixes zephyrproject-rtos#14422.

Signed-off-by: Ioannis Glaropoulos <[email protected]>
galak pushed a commit that referenced this issue Mar 15, 2019
Initialize a local struct variable to zero, to suppress
un-initialized variable error.

Fixes #14422.

Signed-off-by: Ioannis Glaropoulos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants