diff options
author | Keith Busch <[email protected]> | 2024-06-04 11:59:04 -0700 |
---|---|---|
committer | Keith Busch <[email protected]> | 2024-06-24 12:53:41 -0700 |
commit | b9ecbfa45516182cd062fecd286db7907ba84210 (patch) | |
tree | e4db94bf2776b5213ffac5a3998659d96ded42d1 /lib/debugobjects.c | |
parent | 44348870de4b8f292f97b84583a298d66fbaf738 (diff) |
nvme: apple: fix device reference counting
Drivers must call nvme_uninit_ctrl after a successful nvme_init_ctrl.
Split the allocation side out to make the error handling boundary easier
to navigate. The apple driver had been doing this wrong, leaking the
controller device memory on a tagset failure.
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions