]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: fix NULL pointer dereference in nvme_init_subsystem
authorIsrael Rukshin <israelr@mellanox.com>
Sun, 10 Jun 2018 10:31:10 +0000 (10:31 +0000)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Jun 2018 14:17:41 +0000 (16:17 +0200)
commitde0da5ec5d2603a0f5d2d5207db7512622808d7b
treef24a46cc72411e71324c7f83951e0dfb93d57a99
parent474b04e58fb7e7491e21b15fcee2887dc72bb83a
nvme: fix NULL pointer dereference in nvme_init_subsystem

When using nvme-pci driver the nvmf_ctrl_options is NULL.
There is no need to check for discovery_nqn flag at non-fabrics controller.

Fixes: 9c5d3acd ("nvme-fabrics: allow duplicate connections to the discovery controller")
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c