linux/drivers/nvme/host
Adam Manzanares be5eb93354 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: 2637baed78 ("nvme: introduce generic per-namespace chardev")
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Suggested-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Adam Manzanares <a.manzanares@samsung.com>
Reviewed-by: Javier González <javier@javigon.com>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-10-14 08:07:47 +02:00
..
core.c nvme: fix per-namespace chardev deletion 2021-10-14 08:07:47 +02:00
fabrics.c nvme-fabrics: remove superfluous nvmf_host_put in nvmf_parse_options 2021-08-16 14:42:23 +02:00
fabrics.h nvme: use blk_execute_rq() for passthrough commands 2021-06-30 15:35:38 -06:00
fault_inject.c nvme: enable to inject errors into admin commands 2019-06-21 11:15:50 +02:00
fc.c nvme-fc: remove freeze/unfreeze around update_nr_hw_queues 2021-09-21 09:17:12 +02:00
fc.h nvme-fc: Update header and host for common definitions for LS handling 2020-05-09 16:18:33 -06:00
hwmon.c nvme-hwmon: Return error code when registration fails 2021-03-05 13:41:03 +01:00
ioctl.c remove the lightnvm subsystem 2021-08-14 15:54:09 -06:00
Kconfig nvme: Have NVME_FABRICS select NVME_CORE instead of transport drivers 2021-08-16 21:03:18 +02:00
Makefile remove the lightnvm subsystem 2021-08-14 15:54:09 -06:00
multipath.c nvme: fix per-namespace chardev deletion 2021-10-14 08:07:47 +02:00
nvme.h nvme: move nvme_multi_css into nvme.h 2021-09-06 09:59:02 +02:00
pci.c nvme-pci: Fix abort command id 2021-10-07 08:02:06 -07:00
rdma.c nvme-rdma: destroy cm id before destroy qp to avoid use after free 2021-09-14 10:32:04 +02:00
tcp.c nvme-tcp: fix incorrect h2cdata pdu offset accounting 2021-09-21 09:17:15 +02:00
trace.c nvme: add set feature tracing support 2021-08-16 14:42:23 +02:00
trace.h nvme: fix nvme_setup_command metadata trace event 2021-07-21 09:55:44 +02:00
zns.c nvme: split nvme_report_zones 2021-06-03 10:29:26 +03:00