-
Notifications
You must be signed in to change notification settings - Fork 7.6k
drivers: video: fix uninitialized struct in ov2640_init() #92151
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
drivers: video: fix uninitialized struct in ov2640_init() #92151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM.
Maybe just clarify a bit the commit log ? I missed that in the recent patch merged which does similar change on other drivers. This is no more Zero-initiialize since now video_format is initialized to the default format (only pitch variable is 0 initialized).
Would it be possible to just change this line of the commit log ?
CI fails for now but seems infrastructure-related, not specific to this PR. |
Initialize fmt with default format and zero pitch to fix Coverity. CID: 524780 Signed-off-by: Gaetan Perrot <[email protected]>
822a1c2
to
c696ef0
Compare
Does the new commit log make more sense ? |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the update. Looks good to me.
Zero-initialize fmt to fix Coverity.
CID: 524780
Fix #90472