aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorMike Kravetz <[email protected]>2006-05-20 15:00:05 -0700
committerLinus Torvalds <[email protected]>2006-05-21 12:59:17 -0700
commit12783b002db1f02c29353c8f698a85514420b9f4 (patch)
treed0cec6913308fb34d539192dd0928cd0d7aae714 /scripts/patch-kernel
parentad8f5797302ed389476debcc51b4630f387618b9 (diff)
[PATCH] SPARSEMEM incorrectly calculates section number
A bad calculation/loop in __section_nr() could result in incorrect section information being put into sysfs memory entries. This primarily impacts memory add operations as the sysfs information is used while onlining new memory. Fix suggested by Dave Hansen. Note that the bug may not be obvious from the patch. It actually occurs in the function's return statement: return (root_nr * SECTIONS_PER_ROOT) + (ms - root); In the existing code, root_nr has already been multiplied by SECTIONS_PER_ROOT. Signed-off-by: Mike Kravetz <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Andy Whitcroft <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions