]> 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>
Wed, 19 Jun 2013 00:06:12 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:08 +0000 (17:13 +1000)
commitad30068ea3800acb2fee9ca50bc63359fd1c8fbc
tree5353c2e9ac36f5e8b3a1602d5dc2dd7245f57d72
parent40448665846ef861c2aca644e8f6ba8214ab6718
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