lkml.org 
[lkml]   [2009]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 3/3] acpi: check for pxm_to_node_map overflow

* Cyrill Gorcunov <gorcunov@gmail.com> wrote:

> It is hardly (if ever) possible but in case of broken _PXM
> entry we could reach out of pxm_to_node_map array
> bounds in acpi_map_pxm_to_node() call. Lets check it
> (it's not that expensive and safe).
>
> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
> CC: Len Brown <lenb@kernel.org>
> ---
> drivers/acpi/numa.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

just curious - how did you find this - code review or some tool help like
Sparse output or a compiler warning?

Ingo


\
 
 \ /
  Last update: 2009-01-02 10:27    [W:0.034 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site