mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] Error checks omitted in init_tmpfs() in mm/tiny-shmem.c
From: Hareesh Nagarajan <hnagar2@gmail.com> Signed-off-by: Hareesh Nagarajan <hnagar2@gmail.com> Acked-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
a3e713b5fd
commit
5d57bd39eb
1 changed files with 4 additions and 1 deletions
|
@ -31,11 +31,14 @@ static struct vfsmount *shm_mnt;
|
||||||
|
|
||||||
static int __init init_tmpfs(void)
|
static int __init init_tmpfs(void)
|
||||||
{
|
{
|
||||||
register_filesystem(&tmpfs_fs_type);
|
BUG_ON(register_filesystem(&tmpfs_fs_type) != 0);
|
||||||
|
|
||||||
#ifdef CONFIG_TMPFS
|
#ifdef CONFIG_TMPFS
|
||||||
devfs_mk_dir("shm");
|
devfs_mk_dir("shm");
|
||||||
#endif
|
#endif
|
||||||
shm_mnt = kern_mount(&tmpfs_fs_type);
|
shm_mnt = kern_mount(&tmpfs_fs_type);
|
||||||
|
BUG_ON(IS_ERR(shm_mnt));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
module_init(init_tmpfs)
|
module_init(init_tmpfs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue