diff options
author | Nishanth Aravamudan <nacc@linux.vnet.ibm.com> | 2014-10-09 19:41:28 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-10-13 03:15:53 -0400 |
commit | 2d15b9b479512f05680541acffd9acbbc831a47c (patch) | |
tree | efa387de6a01834cc14eb3a4823bf53e142cc7d1 /arch/powerpc/mm/numa.c | |
parent | 6507955c9781a75f1b085f0cf0a77b9df06f0197 (diff) |
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>
Diffstat (limited to 'arch/powerpc/mm/numa.c')
-rw-r--r-- | arch/powerpc/mm/numa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 649666d5d1c2..51d707d85b2d 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
@@ -1801,7 +1801,8 @@ static const struct file_operations topology_ops = { | |||
1801 | static int topology_update_init(void) | 1801 | static int topology_update_init(void) |
1802 | { | 1802 | { |
1803 | start_topology_update(); | 1803 | start_topology_update(); |
1804 | proc_create("powerpc/topology_updates", 0644, NULL, &topology_ops); | 1804 | if (!proc_create("powerpc/topology_updates", 0644, NULL, &topology_ops)) |
1805 | return -ENOMEM; | ||
1805 | 1806 | ||
1806 | return 0; | 1807 | return 0; |
1807 | } | 1808 | } |