summaryrefslogtreecommitdiff
path: root/rust/helpers/pci.c
diff options
context:
space:
mode:
authorMax Gurtovoy <mgurtovoy@nvidia.com>2025-09-24 23:35:44 +0300
committerKeith Busch <kbusch@kernel.org>2025-12-01 08:53:17 -0800
commit7fce856f1180c2db3c9f5a88b04bb7124a20cb21 (patch)
tree55f5622e157bb4b3bdebc82fac4365d1de13aa93 /rust/helpers/pci.c
parentd211a2803551c8ffdf0b97d129388f7d9cc129b5 (diff)
nvmet: add sanity checks when freeing subsystem
Add WARN_ON_ONCE checks in nvmet_subsys_free() to ensure that the ctrls and hosts lists are all empty during subsystem release. This helps catch resource leaks. Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions