OSDN Git Service

powerpc/numa: check error return from proc_create
authorNishanth Aravamudan <nacc@linux.vnet.ibm.com>
Thu, 9 Oct 2014 23:41:28 +0000 (16:41 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Oct 2014 07:15:53 +0000 (18:15 +1100)
commit2d15b9b479512f05680541acffd9acbbc831a47c
treeefa387de6a01834cc14eb3a4823bf53e142cc7d1
parent6507955c9781a75f1b085f0cf0a77b9df06f0197
powerpc/numa: check error return from proc_create

proc_create can fail, we should check the return value and pass up the
failure.

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/numa.c