8000 Fix for a critical bug introduced in #473 by williambj1 · Pull Request #482 · VoodooI2C/VoodooI2C · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix for a critical bug introduced in #473 #482

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

Merged
merged 1 commit into from
Oct 19, 2021
Merged

Fix for a critical bug introduced in #473 #482

merged 1 commit into from
Oct 19, 2021

Conversation

williambj1
Copy link
Contributor

Hi @ben9923!

I apologize for not testing the suggestion from the previous PR thoroughly.

memset(&bus_device, 0, sizeof(VoodooI2CControllerBusDevice));

memset clears out bus_device when VoodooI2CControllerDriver::init is called. As a result, all config values will remain as 0 if nothing valid was returned from ACPI.

Huge thanks to @stevezhengshiqi for pointing out the issue and testing the experimental builds.

`memset` clears `bus_device` when `VoodooI2CControllerDriver::init` is called
@ben9923 ben9923 requested a review from kprinssu October 13, 2021 17:34
Copy link
Member
@ben9923 ben9923 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Looks OK to me.

Let's wait for @kprinssu to approve it too :)

@kprinssu
Copy link
Collaborator

@ben9923 Feel free to merge it in. Looks good to me.

@kprinssu kprinssu merged commit 2dfa57a into VoodooI2C:master Oct 19, 2021
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.

3 participants
0