-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
[Coverity CID :205651]Uninitialized variables in /drivers/dma/dma_stm32.c #20490
Comments
@aescolar Is this issue points to |
@cybertale (I just helped triage it, by trying to pinpoint the origin and author)
|
The specific problem is that the function stm32_dma_check_fifo_mburst() is referencing the FIFOThreshold field of DMA_InitStruct which has never been initialized. I don't know the hardware but I would figure out what FIFOThreshold should be initialized to before calling the check_fifo_mburst() function. |
@erwango any thoughts/comments? |
Shouldn't we do something like :
Seems function Btw, some clean up might be needed as @cybertale , can you check these points ? |
Yes, this is a potential bug I missed, I'll start fixing this now. |
Fixes zephyrproject-rtos#20490. Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
Fixes #20490. Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
Static code scan issues seen in File: /drivers/dma/dma_stm32.c
Category: Uninitialized variables
Function: dma_stm32_configure
Component: Drivers
CID: 205651
Please fix or provide comments to square it off in coverity in the link: https://scan9.coverity.com/reports.htm#v32951/p12996
The text was updated successfully, but these errors were encountered: