git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0eae0e
)
driver core: numa: fix BUILD_BUG_ON for node_read_distance
author
David Rientjes
<rientjes@google.com>
Wed, 10 Mar 2010 22:50:21 +0000
(14:50 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 19 Mar 2010 14:12:22 +0000
(07:12 -0700)
node_read_distance() has a BUILD_BUG_ON() to prevent buffer overruns when
the number of nodes printed will exceed the buffer length.
Each node only needs four chars: three for distance (maximum distance is
255) and one for a seperating space or a trailing newline.
Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/node.c
patch
|
blob
|
history
diff --cc
drivers/base/node.c
Simple merge