Re: [PATCH] x86/microcode/AMD: Fix out-of-bounds on systems with CPU-less NUMA nodes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/7/25 05:12, Florent Revest wrote:
>  	for_each_node(nid) {
> -		cpu = cpumask_first(cpumask_of_node(nid));
> +		mask = cpumask_of_node(nid);
> +		if (cpumask_empty(mask))
> +			continue;
> +
> +		cpu = cpumask_first(mask);

Would for_each_node_with_cpus() trim this down a bit?




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux