diff options
author | Keith Busch <kbusch@kernel.org> | 2024-06-04 21:59:04 +0300 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-06-24 22:53:41 +0300 |
commit | b9ecbfa45516182cd062fecd286db7907ba84210 (patch) | |
tree | e4db94bf2776b5213ffac5a3998659d96ded42d1 /scripts/generate_rust_analyzer.py | |
parent | 44348870de4b8f292f97b84583a298d66fbaf738 (diff) | |
download | linux-b9ecbfa45516182cd062fecd286db7907ba84210.tar.xz |
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 <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions