diff options
author | Adam Manzanares <[email protected]> | 2021-10-13 15:04:19 +0000 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2021-10-14 08:07:47 +0200 |
commit | be5eb933542629ad6a7d4c92097b1b472b1612d0 (patch) | |
tree | 10f011cf9460d5e6b4051493750d9214e30a0b45 /scripts/gdb/linux/utils.py | |
parent | 85f74acf097a63a07f5a7c215db6883e5c35e3ff (diff) |
nvme: fix per-namespace chardev deletion
Decrease reference count of chardevice during char device deletion in
order to fix a memory leak. Add a release callabck for the device
associated chardev and move ida_simple_remove into the release function.
Fixes: 2637baed7801 ("nvme: introduce generic per-namespace chardev")
Reported-by: Yi Zhang <[email protected]>
Suggested-by: Sagi Grimberg <[email protected]>
Signed-off-by: Adam Manzanares <[email protected]>
Reviewed-by: Javier González <[email protected]>
Tested-by: Yi Zhang <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions