Page MenuHomeFreeBSD

LinuxKPI: pci: make sure a tailq and lock are initialized
ClosedPublic

Authored by bz on Sat, Jan 24, 10:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 14, 4:18 PM
Unknown Object (File)
Fri, Feb 13, 2:43 PM
Unknown Object (File)
Wed, Feb 11, 10:49 AM
Unknown Object (File)
Tue, Feb 10, 6:30 PM
Unknown Object (File)
Mon, Feb 9, 11:11 PM
Unknown Object (File)
Mon, Feb 9, 6:27 AM
Unknown Object (File)
Sun, Feb 1, 1:49 AM
Unknown Object (File)
Tue, Jan 27, 3:40 PM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable

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.

Anyone time for the simple review?

This revision is now accepted and ready to land.Mon, Feb 9, 2:25 PM