[PATCHv2 0/5] nvme: fix initialization memleak

Keith Busch kbusch at meta.com
Tue Jun 4 11:59:03 PDT 2024


From: Keith Busch <kbusch at kernel.org>

I ran more of the blktests on loop in addtion to pci, also did more
error injection at various points around the early initialization to
make sure the kmemleak really is gone.

Changes since v1:

  Use ERR_CAST() as appropriate (Christoph, Hannes)

  Fix apple cleanup error (me)

Keith Busch (5):
  nvme: apple: fix device reference counting
  nvme: tcp: split controller bringup handling
  nvme: rdma: split controller bringup handling
  nvme: fc: split controller bringup handling
  nvme: split device add from initialzation

 drivers/nvme/host/apple.c  | 32 +++++++++++++++++----
 drivers/nvme/host/core.c   | 58 +++++++++++++++++++++++---------------
 drivers/nvme/host/fc.c     | 48 ++++++++++++++++++++-----------
 drivers/nvme/host/nvme.h   |  1 +
 drivers/nvme/host/pci.c    |  5 ++++
 drivers/nvme/host/rdma.c   | 33 +++++++++++++++++-----
 drivers/nvme/host/tcp.c    | 30 ++++++++++++++++----
 drivers/nvme/target/loop.c |  5 ++++
 8 files changed, 155 insertions(+), 57 deletions(-)

-- 
2.43.0




More information about the Linux-nvme mailing list