Page MenuHomeFreeBSD

LinuxKPI: pci: make sure a tailq and lock are initialized
Needs ReviewPublic

Authored by bz on Sat, Jan 24, 10:20 PM.
Tags
None
Referenced Files
F143051477: D54861.id.diff
Sun, Jan 25, 12:31 PM
F143037822: D54861.id.diff
Sun, Jan 25, 10:30 AM
F143016213: D54861.id170354.diff
Sun, Jan 25, 7:12 AM
F143001281: D54861.diff
Sun, Jan 25, 5:02 AM
F142998003: D54861.id170354.diff
Sun, Jan 25, 4:22 AM
F142972546: D54861.diff
Sun, Jan 25, 12:49 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

Move the initializations of the tailq, and lock from
linux_pci_attach_device() into lkpifill_pci_dev() so that they are
initialized in all cases we create a device (see all the possible
callers of lkpifill_pci_dev()).

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Test Plan

I hit one of these cases last year in December but I lost
track under which circumstances as the change was just
hanging along D.54841.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70117
Build 67000: arc lint + arc unit

Event Timeline

bz requested review of this revision.Sat, Jan 24, 10:20 PM
sys/compat/linuxkpi/common/src/linux_pci.c
388

The move of this line is unrelated to the change but it made sense to group them together below.