diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2012-08-01 01:46:04 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-08-01 03:42:49 +0200 |
commit | db36a46113e101a8aa2d6ede41e78f2eaabed3f1 (patch) | |
tree | bb438589b620dbdca16bf5918468cd56c5b19f42 /COPYING | |
parent | mm/sparse: optimize sparse_index_alloc (diff) | |
download | linux-db36a46113e101a8aa2d6ede41e78f2eaabed3f1.tar.xz linux-db36a46113e101a8aa2d6ede41e78f2eaabed3f1.zip |
mm/sparse: more checks on mem_section number
__section_nr() was implemented to retrieve the corresponding memory
section number according to its descriptor. It's possible that the
specified memory section descriptor doesn't exist in the global array. So
add more checking on that and report an error for a wrong case.
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions