[PATCH] nvme-multipath: fix flex array size in struct nvme_ns_head
John Garry
john.g.garry at oracle.com
Wed May 27 00:30:37 PDT 2026
>
> Fix this by allocating the flexible array using nr_node_ids instead
> of num_possible_nodes(). Since nr_node_ids represents the maximum
> possible NUMA node IDs, indexing current_path[] using numa_node_id()
> becomes safe even on systems with sparse node IDs.
>
> Fixes: f333444708f8 ("nvme: take node locality into account when selecting a path")
> Signed-off-by: Nilay Shroff<nilay at linux.ibm.com>
Reviewed-by: John Garry <john.g.garry at oracle.com>
More information about the Linux-nvme
mailing list