]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nvme: multipath: fix return value of nvme_available_path
authorUday Shankar <ushankar@purestorage.com>
Fri, 4 Apr 2025 20:06:43 +0000 (14:06 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 06:02:07 +0000 (08:02 +0200)
[ Upstream commit e3105f54a51554fb1bbf19dcaf93c4411d2d6c8a ]

The function returns bool so we should return false, not NULL. No
functional changes are expected.

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/multipath.c

index 2a7635565083046c575efe1793362ae10581defd..f39823cde62c72346b0aa555532b52acfb069d04 100644 (file)
@@ -427,7 +427,7 @@ static bool nvme_available_path(struct nvme_ns_head *head)
        struct nvme_ns *ns;
 
        if (!test_bit(NVME_NSHEAD_DISK_LIVE, &head->flags))
-               return NULL;
+               return false;
 
        list_for_each_entry_srcu(ns, &head->list, siblings,
                                 srcu_read_lock_held(&head->srcu)) {