OpenCloudOS-Kernel/drivers/nvme/host
Minwoo Im 7e5dd57ef3 nvme-pci: fix NULL pointer dereference in nvme_free_host_mem()
Following condition which will cause NULL pointer dereference will
occur in nvme_free_host_mem() when it tries to remove pci device via
nvme_remove() especially after a failure of host memory allocation for HMB.

    "(host_mem_descs == NULL) && (nr_host_mem_descs != 0)"

It's because __nr_host_mem_descs__ is not cleared to 0 unlike
__host_mem_descs__ is so.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2017-11-28 08:49:26 -08:00
..
Kconfig nvme: implement multipath access to nvme subsystems 2017-11-10 19:53:25 -07:00
Makefile Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block 2017-11-14 15:32:19 -08:00
core.c nvme: Suppress static analyis warning 2017-11-20 08:38:11 +01:00
fabrics.c nvme: track subsystems 2017-11-10 19:53:25 -07:00
fabrics.h nvme-fabrics: introduce init command check for a queue that is not alive 2017-11-20 08:28:31 +01:00
fc.c nvme-fc: don't use bit masks for set/test_bit() numbers 2017-11-24 10:12:33 -07:00
lightnvm.c nvme: track shared namespaces 2017-11-10 19:53:25 -07:00
multipath.c nvme: fix spelling mistake: "requeing" -> "requeuing" 2017-11-20 08:38:10 +01:00
nvme.h nvme-pci: add quirk for delay before CHK RDY for WDC SN200 2017-11-23 09:12:08 +01:00
pci.c nvme-pci: fix NULL pointer dereference in nvme_free_host_mem() 2017-11-28 08:49:26 -08:00
rdma.c nvme-rdma: fix memory leak during queue allocation 2017-11-28 08:49:22 -08:00