Skip to content

Fixes an initialization race condition#17

Open
jhicks-camgian wants to merge 1 commit intoKastnerRG:masterfrom
jhicks-camgian:jhicks-camgian_init-race
Open

Fixes an initialization race condition#17
jhicks-camgian wants to merge 1 commit intoKastnerRG:masterfrom
jhicks-camgian:jhicks-camgian_init-race

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