Use the standard queue(3) macros instead of hand-crafted linked list
code.
Details
Details
- Reviewers
jhb imp - Group Reviewers
bhyve - Commits
- rS359365: bhyve: use STAILQ in NVMe emulation
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
usr.sbin/bhyve/pci_nvme.c | ||
---|---|---|
1317 ↗ | (On Diff #69557) | Either move the assert() above the REMOVE similar to the old code or axe it. STAILQ_REMOVE_HEAD will core dump when it dereferences the head pointer before getting to the assert() in the current code. |
usr.sbin/bhyve/pci_nvme.c | ||
---|---|---|
1317 ↗ | (On Diff #69557) | Bah, good catch. Thanks |