Page MenuHomeFreeBSD

nvme: Fix namespace destruct
AbandonedPublic

Authored by chuck on Jun 10 2024, 4:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 14, 10:43 AM
Unknown Object (File)
Sat, Jul 6, 8:39 PM
Unknown Object (File)
Wed, Jul 3, 10:58 AM
Unknown Object (File)
Sat, Jun 29, 6:52 PM
Unknown Object (File)
Sat, Jun 29, 3:23 AM
Unknown Object (File)
Thu, Jun 27, 2:48 AM
Unknown Object (File)
Jun 12 2024, 4:32 PM
Unknown Object (File)
Jun 12 2024, 2:21 AM
Subscribers

Details

Reviewers
imp
jhb
Summary

The driver calls nvme_ns_destruct for each possible namespace, not only
those which exist. The device alias code did not account for this and
will segfault.

Fix is to move destroying the alias device inside the cdev check.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58129
Build 55017: arc lint + arc unit