Skip to content
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

Fixed two issue of variable not being initialized which could cause wrong results #1985

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Andrew12138-w
Copy link

@Andrew12138-w Andrew12138-w commented Apr 18, 2023

1. 这个PR修复的是什么问题?
第一处没有对PWM接口进行初始化,没有分配PWM相关资源
第二处虽然分配了PWM相关资源,但对于缺少了相关分配空间是否成功的ret判断
2. 这个PR不修复具体会带来什么后果?
未初始化分配资源导致错误
程序流判断错误
3. PR修复方案的依据是什么?
第一处使用函数csi_pwn_init( ) 进行初始化
第二处添加if判断保证完成与csi_pwn_init( )源码一样的效果
4. 在什么环境下测试或者验证过?
all

@CLAassistant
Copy link

CLAassistant commented Apr 18, 2023

CLA assistant check
All committers have signed the CLA.

@Andrew12138-w Andrew12138-w marked this pull request as ready for review April 19, 2023 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants