]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/page_alloc.c: add additional checking and return value for the 'table->data'
authorChen Gang <gang.chen@asianux.com>
Thu, 27 Jun 2013 23:51:40 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:38 +0000 (16:37 +1000)
commitc7b37d0434fa6145f03b4f90bb7f0f27fa7f607f
treea386982193db6bab862c733b39ebb3503414b83c
parent7d2f8d50c288b4458084efa5c4117ac62b3b2914
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>
mm/page_alloc.c