Skip to content

Commit

Permalink
[PATCH] Error checks omitted in init_tmpfs() in mm/tiny-shmem.c
Browse files Browse the repository at this point in the history
From: Hareesh Nagarajan <[email protected]>

Signed-off-by: Hareesh Nagarajan <[email protected]>
Acked-by: Matt Mackall <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Matt Mackall authored and Linus Torvalds committed Oct 31, 2005
1 parent a3e713b commit 5d57bd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mm/tiny-shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ static struct vfsmount *shm_mnt;

static int __init init_tmpfs(void)
{
register_filesystem(&tmpfs_fs_type);
BUG_ON(register_filesystem(&tmpfs_fs_type) != 0);

#ifdef CONFIG_TMPFS
devfs_mk_dir("shm");
#endif
shm_mnt = kern_mount(&tmpfs_fs_type);
BUG_ON(IS_ERR(shm_mnt));

return 0;
}
module_init(init_tmpfs)
Expand Down

0 comments on commit 5d57bd3

Please sign in to comment.