Re: [PATCH v3] NUMA x86: add constraints check for nid parameters

From: David Rientjes
Date: Thu Dec 08 2011 - 16:09:08 EST


On Thu, 8 Dec 2011, Petr Holasek wrote:

> This patch adds constraints checks for numa_set_distance()
> function. It emits warning and avoids a store to a negative
> index in numa_distance[] array. Negative ids can be passed when
> pxm-to-nids mapping is not properly filled while parsing the SRAT.
>
> Signed-off-by: Petr Holasek <pholasek@xxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>

Thanks Petr!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/