mm/page_alloc.c: add additional checking and return value for the 'table->data'
authorChen Gang <gang.chen@asianux.com>
Wed, 3 Jul 2013 22:02:35 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:31 +0000 (16:07 -0700)
commitdacbde0963d62a4962d5e8a5cc38dfd1f016124b
treed1ce35d0d3fc2307c1fbb6b35c17afc007d85afd
parentc53954a092d07c5684d31ea1fc813d262cff08a5
mm/page_alloc.c: add additional checking and return value for the 'table->data'

- check the length of the procfs data before copying it into a fixed
  size array.

- when __parse_numa_zonelist_order() fails, save the error code for
  return.

- 'char*' --> 'char *' coding style fix

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c