init: return proper error code in do_mounts_rd()
authorDavidlohr Bueso <dave@gnu.org>
Tue, 22 Mar 2011 23:34:49 +0000 (16:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Mar 2011 00:44:15 +0000 (17:44 -0700)
commitea611b2699b51a762ef03f805f9616e65d98f68e
tree7c7303390dd4ddeffe2bf6cea3e4acd63f1fb4e4
parent1a530a6f23f7dca336311ef60c9ca26f3dc63688
init: return proper error code in do_mounts_rd()

In do_mounts_rd() if memory cannot be allocated, return -ENOMEM.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/do_mounts_rd.c