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

Fixes an initialization race condition #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhicks-camgian
Copy link

@jhicks-camgian jhicks-camgian commented Oct 29, 2016

  • If an interrupt occurs during the fpga_probe routine, the driver
    can crash due to an uninitalized PCI drvdata field in intrpt_handler()

This change moves the allocation of the PCI drvdata to the prologue
of the fpga_probe() routine and then relies upon drvdata->id to determine
initialization readiness during the intrpt_handler() routine.

* If an interrupt occurs during the fpga_probe routine, the driver
  can crash due to an uninitalized PCI drvdata field.

This change moves the allocation of the PCI drvdata to the prologue
of the fpga_probe() routine and then relies upon drvdata->id to determine
initialization readiness during the intrpt_handelr() routine.
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.

1 participant