init: return proper error code in do_mounts_rd()
authorDavidlohr Bueso <[email protected]>
Tue, 22 Mar 2011 23:34:49 +0000 (16:34 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
init/do_mounts_rd.c