The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=0d48d1ffe0446cd2f87ce02555e3d17772ae7284

commit 0d48d1ffe0446cd2f87ce02555e3d17772ae7284
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2025-05-30 23:18:19 +0000
Commit:     John Baldwin <j...@freebsd.org>
CommitDate: 2025-05-30 23:29:57 +0000

    nvmft: Fix a resource leak for SET_FEATURES/ASYNC_EVENT_CONFIGURATION
    
    The received command capsule was not freed after sending the success
    response.
    
    Fixes:          a15f7c96a276 ("nvmft: The in-kernel NVMe over Fabrics 
controller")
    Sponsored by:   Chelsio Communications
---
 sys/dev/nvmf/controller/nvmft_controller.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/nvmf/controller/nvmft_controller.c 
b/sys/dev/nvmf/controller/nvmft_controller.c
index 96c9fee47357..390467534ca2 100644
--- a/sys/dev/nvmf/controller/nvmft_controller.c
+++ b/sys/dev/nvmf/controller/nvmft_controller.c
@@ -787,6 +787,7 @@ handle_set_features(struct nvmft_controller *ctrlr,
                ctrlr->aer_mask = aer_mask;
                mtx_unlock(&ctrlr->lock);
                nvmft_send_success(ctrlr->admin, nc);
+               nvmf_free_capsule(nc);
                return;
        }
        default:

Reply via email to