aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2024-06-04 11:59:04 -0700
committerKeith Busch <[email protected]>2024-06-24 12:53:41 -0700
commitb9ecbfa45516182cd062fecd286db7907ba84210 (patch)
treee4db94bf2776b5213ffac5a3998659d96ded42d1 /lib/debugobjects.c
parent44348870de4b8f292f97b84583a298d66fbaf738 (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