]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ef27e8e8443352347ef5f7ea72f480a80f6c0d1
treed1ce35d0d3fc2307c1fbb6b35c17afc007d85afd
parenta8bdf8c6630242c111c1ceb85f0cb09a00ed72ce
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