aboutsummaryrefslogtreecommitdiff
path: root/init/do_mounts.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2015-05-29 21:29:12 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2015-05-29 21:29:12 +1000
commite4eacbea9a418a88bc4a2b44db5ed6b2250afde0 (patch)
tree50760896ecca78281df27906769fa19b670dc805 /init/do_mounts.c
parentc12d56184d6f6526261d6b1811ddc63aa8db8b1d (diff)
parent8c169d94c31fced71d907e26b19b4f5f0bd9d7bf (diff)
Merge branch 'akpm-current/current'
Conflicts: arch/x86/kernel/machine_kexec_64.c drivers/staging/android/lowmemorykiller.c
Diffstat (limited to 'init/do_mounts.c')
-rw-r--r--init/do_mounts.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c
index a95bbdb2a502..dea5de95c2dd 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -533,8 +533,13 @@ void __init mount_root(void)
}
#endif
#ifdef CONFIG_BLOCK
- create_dev("/dev/root", ROOT_DEV);
- mount_block_root("/dev/root", root_mountflags);
+ {
+ int err = create_dev("/dev/root", ROOT_DEV);
+
+ if (err < 0)
+ pr_emerg("Failed to create /dev/root: %d\n", err);
+ mount_block_root("/dev/root", root_mountflags);
+ }
#endif
}