]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: fixup crash on failed discovery
authorHannes Reinecke <hare@suse.de>
Tue, 7 Aug 2018 10:43:42 +0000 (12:43 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 7 Aug 2018 12:40:27 +0000 (14:40 +0200)
commitf2bb99c45863c9a0363dc1464ac36f852cf74ce3
tree54596534a95595541a9be00cc2fc78239ab0c04d
parent15d685cd6c09d463f41881f734fb954d56936c34
nvme: fixup crash on failed discovery

When the initial discovery fails the subsystem hasn't been setup yet
in nvme_mpath_stop, and we can't dereference ctrl->subsys.

Fixes: 947f0d91 ("nvme: add ANA support")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c