linux/drivers/nvme
Daniel Wagner c9e668a196 nvme-multipath: Early exit if no path is available
[ Upstream commit d1bcf006a9 ]

nvme_round_robin_path() should test if the return ns pointer is valid.
nvme_next_ns() will return a NULL pointer if there is no path left.

Fixes: 75c10e7327 ("nvme-multipath: round-robin I/O policy")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2021-02-03 23:28:50 +01:00
..
host nvme-multipath: Early exit if no path is available 2021-02-03 23:28:50 +01:00
target nvmet-rdma: Fix NULL deref when setting pi_enable and traddr INADDR_ANY 2021-01-19 18:27:30 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00