Skip to content
Commit be5eb933 authored by Adam Manzanares's avatar Adam Manzanares Committed by Christoph Hellwig
Browse files

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: 2637baed

 ("nvme: introduce generic per-namespace chardev")
Reported-by: default avatarYi Zhang <yi.zhang@redhat.com>
Suggested-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarAdam Manzanares <a.manzanares@samsung.com>
Reviewed-by: default avatarJavier González <javier@javigon.com>
Tested-by: default avatarYi Zhang <yi.zhang@redhat.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 85f74acf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment