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.
Differential D45549 Authored by chuck on Jun 10 2024, 4:57 PM.
Details
Diff Detail
Event TimelineHerald added a subscriber: dab. · View Herald TranscriptJun 10 2024, 4:57 PM2024-06-10 16:57:14 (UTC+0) Harbormaster completed remote builds in B58129: Diff 139693.Jun 10 2024, 4:57 PM2024-06-10 16:57:16 (UTC+0) This revision is now accepted and ready to land.Jun 10 2024, 4:58 PM2024-06-10 16:58:27 (UTC+0)
Revision Contents
Diff 139693 sys/dev/nvme/nvme_ns.c
|