mirror of
https://github.com/opnsense/src.git
synced 2026-03-18 08:41:30 -04:00
Fix config_intrhook leak on initial reset failure.
MFC after: 1 week Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
a132ec9f8a
commit
92390644e3
1 changed files with 2 additions and 0 deletions
|
|
@ -1126,12 +1126,14 @@ nvme_ctrlr_start_config_hook(void *arg)
|
|||
status = nvme_ctrlr_hw_reset(ctrlr);
|
||||
if (status != 0) {
|
||||
nvme_ctrlr_fail(ctrlr);
|
||||
config_intrhook_disestablish(&ctrlr->config_hook);
|
||||
return;
|
||||
}
|
||||
|
||||
status = nvme_ctrlr_hw_reset(ctrlr);
|
||||
if (status != 0) {
|
||||
nvme_ctrlr_fail(ctrlr);
|
||||
config_intrhook_disestablish(&ctrlr->config_hook);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue