patch-2.0.35 linux/fs/ext2/ialloc.c

Next file: linux/fs/fat/dir.c
Previous file: linux/fs/ext2/fsync.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.34/linux/fs/ext2/ialloc.c linux/fs/ext2/ialloc.c
@@ -294,7 +294,10 @@
 	struct ext2_super_block * es;
 
 	if (!dir || !(inode = get_empty_inode ()))
+	{
+		*err=-ENOMEM;
 		return NULL;
+	}
 	sb = dir->i_sb;
 	inode->i_sb = sb;
 	inode->i_flags = sb->s_flags;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov