]> 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)
commita0a69285d77bb0e1469b97affc7615bda466f495
treed1ce35d0d3fc2307c1fbb6b35c17afc007d85afd
parenta77161f71c12eba1030f858f6e1c7c908c9a0c5a
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